当前位置:网站首页>Cocos creator collision and collision callback do not take effect
Cocos creator collision and collision callback do not take effect
2022-07-07 15:39:00 【Vegetable chicken on the road】
1、 Collision does not take effect
Remember that , When using physics , Be sure to turn on physics first :
cc.director.getPhysicsManager().enabled = true;
Only in onLoad() in Turn on It works , stay onEnable() perhaps start() All invalid
2. Collision callback does not take effect
If you want to execute the collision callback function in the official document , Two things to note
(1) Check the following options for rigid bodies , Rigid bodies that collide, whether dynamic or static , Both need to be checked
(2) Start collision callback
cc.director.getCollisionManager().enabled = true;
边栏推荐
- #HPDC智能基座人才发展峰会随笔
- leetcode 241. Different Ways to Add Parentheses 为运算表达式设计优先级(中等)
- 【原创】一切不谈考核的管理都是扯淡!
- STM32F103C8T6 PWM驱动舵机(SG90)
- 【數字IC驗證快速入門】20、SystemVerilog學習之基本語法7(覆蓋率驅動...內含實踐練習)
- Jacobo code coverage
- [server data recovery] data recovery case of raid failure of a Dell server
- 【數字IC驗證快速入門】26、SystemVerilog項目實踐之AHB-SRAMC(6)(APB協議基本要點)
- 什麼是數據泄露
- Excerpted words
猜你喜欢
Wechat applet 01
【数字IC验证快速入门】29、SystemVerilog项目实践之AHB-SRAMC(9)(AHB-SRAMC SVTB Overview)
[quickstart to Digital IC Validation] 20. Basic syntax for system verilog Learning 7 (Coverage Driven... Including practical exercises)
使用cpolar建立一个商业网站(2)
How to release NFT in batches in opensea (rinkeby test network)
【服务器数据恢复】戴尔某型号服务器raid故障的数据恢复案例
【数字IC验证快速入门】26、SystemVerilog项目实践之AHB-SRAMC(6)(APB协议基本要点)
Yunxiaoduo software internal test distribution test platform description document
TypeScript 发布 4.8 beta 版本
Ctfshow, information collection: web2
随机推荐
2022全开源企业发卡网修复短网址等BUG_2022企业级多商户发卡平台源码
Matlab experience summary
2. 堆排序『较难理解的排序』
Create lib Library in keil and use lib Library
【数字IC验证快速入门】23、SystemVerilog项目实践之AHB-SRAMC(3)(AHB协议基本要点)
leetcode 241. Different ways to add parentheses design priority for operational expressions (medium)
Getting started with webgl (4)
【目标检测】YOLOv5跑通VOC2007数据集
Ctfshow, information collection: web14
简述keepalived工作原理
Ctfshow, information collection: web5
Do not use memset to clear floating-point numbers
2. Basic knowledge of golang
最安全的证券交易app都有哪些
微信小程序 01
How to deploy the super signature distribution platform system?
15. Using the text editing tool VIM
【OBS】RTMPSockBuf_ Fill, remote host closed connection.
Yunxiaoduo software internal test distribution test platform description document
2. Heap sort "hard to understand sort"