当前位置:网站首页>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;
边栏推荐
- 摘抄的只言片语
- 使用Scrapy框架爬取网页并保存到Mysql的实现
- 15. Using the text editing tool VIM
- 【数字IC验证快速入门】29、SystemVerilog项目实践之AHB-SRAMC(9)(AHB-SRAMC SVTB Overview)
- @Introduction and three usages of controlleradvice
- [follow Jiangke University STM32] stm32f103c8t6_ PWM controlled DC motor_ code
- 【OBS】RTMPSockBuf_Fill, remote host closed connection.
- [target detection] yolov5 Runtong voc2007 data set
- MySQL bit类型解析
- 【數字IC驗證快速入門】20、SystemVerilog學習之基本語法7(覆蓋率驅動...內含實踐練習)
猜你喜欢

【兰州大学】考研初试复试资料分享
![[understanding of opportunity -40]: direction, rules, choice, effort, fairness, cognition, ability, action, read the five layers of perception of 3GPP 6G white paper](/img/38/cc5bb5eaa3dcee5ae2d51a904cf26a.png)
[understanding of opportunity -40]: direction, rules, choice, effort, fairness, cognition, ability, action, read the five layers of perception of 3GPP 6G white paper

什么是数据泄露
Introduction of mongod management database method

Yunxiaoduo software internal test distribution test platform description document
![[quickstart to Digital IC Validation] 20. Basic syntax for system verilog Learning 7 (Coverage Driven... Including practical exercises)](/img/d3/cab8a1cba3c8d8107ce4a95f328d36.png)
[quickstart to Digital IC Validation] 20. Basic syntax for system verilog Learning 7 (Coverage Driven... Including practical exercises)

Steps to create P8 certificate and warehousing account
![[quick start of Digital IC Verification] 29. Ahb-sramc (9) (ahb-sramc svtb overview) of SystemVerilog project practice](/img/f7/03975d08912afd8daee936799e8951.png)
[quick start of Digital IC Verification] 29. Ahb-sramc (9) (ahb-sramc svtb overview) of SystemVerilog project practice
Implementation of crawling web pages and saving them to MySQL using the scrapy framework

The rebound problem of using Scrollview in cocos Creator
随机推荐
With 8 modules and 40 thinking models, you can break the shackles of thinking and meet the thinking needs of different stages and scenes of your work. Collect it quickly and learn it slowly
Nacos conformance protocol cp/ap/jraft/distro protocol
Actually changed from 408 to self proposition! 211 North China Electric Power University (Beijing)
【数据挖掘】视觉模式挖掘:Hog特征+余弦相似度/k-means聚类
Whether runnable can be interrupted
[quick start of Digital IC Verification] 20. Basic grammar of SystemVerilog learning 7 (coverage driven... Including practical exercises)
Unity之ASE实现全屏风沙效果
Super signature principle (fully automated super signature) [Yun Xiaoduo]
What is Base64?
HPDC smart base Talent Development Summit essay
The rebound problem of using Scrollview in cocos Creator
什么是pv和uv? pv、uv
Window环境下配置Mongodb数据库
Connecting FTP server tutorial
unnamed prototyped parameters not allowed when body is present
【搞船日记】【Shapr3D的STL格式转Gcode】
15. Using the text editing tool VIM
The bank needs to build the middle office capability of the intelligent customer service module to drive the upgrade of the whole scene intelligent customer service
Getting started with webgl (2)
【數字IC驗證快速入門】20、SystemVerilog學習之基本語法7(覆蓋率驅動...內含實踐練習)