当前位置:网站首页>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;
边栏推荐
- TypeScript 发布 4.8 beta 版本
- Unity's ASE realizes cartoon flame
- 避坑:Sql中 in 和not in中有null值的情况说明
- 2.Golang基础知识
- Cocos uses custom material to display problems
- [quick start of Digital IC Verification] 19. Basic grammar of SystemVerilog learning 6 (thread internal communication... Including practical exercises)
- The rebound problem of using Scrollview in cocos Creator
- 2022年5月互联网医疗领域月度观察
- Super simple and fully automated generation super signature system (cloud Xiaoduo minclouds.com cloud service instance), free application in-house test app distribution and hosting platform, maintenan
- 【深度学习】语义分割实验:Unet网络/MSRC2数据集
猜你喜欢

【數字IC驗證快速入門】20、SystemVerilog學習之基本語法7(覆蓋率驅動...內含實踐練習)
![[follow Jiangke University STM32] stm32f103c8t6_ PWM controlled DC motor_ code](/img/8d/a6d477a8679ca4f3885b1a7b542437.png)
[follow Jiangke University STM32] stm32f103c8t6_ PWM controlled DC motor_ code
![[deep learning] semantic segmentation experiment: UNET network /msrc2 dataset](/img/69/9dadeb92f8d6299250a894690c2845.png)
[deep learning] semantic segmentation experiment: UNET network /msrc2 dataset

使用cpolar建立一个商业网站(2)

【数据挖掘】视觉模式挖掘:Hog特征+余弦相似度/k-means聚类

居然从408改考自命题!211华北电力大学(北京)

Ctfshow, information collection: web12
![[quick start of Digital IC Verification] 24. AHB sramc of SystemVerilog project practice (4) (AHB continues to deepen)](/img/cf/45775b712f60869186a25d3657ee1b.png)
[quick start of Digital IC Verification] 24. AHB sramc of SystemVerilog project practice (4) (AHB continues to deepen)

Ctfshow, information collection: web2
Implementation of crawling web pages and saving them to MySQL using the scrapy framework
随机推荐
The rebound problem of using Scrollview in cocos Creator
[markdown grammar advanced] make your blog more exciting (IV: set font style and color comparison table)
居然从408改考自命题!211华北电力大学(北京)
银行需要搭建智能客服模块的中台能力,驱动全场景智能客服务升级
Use cpolar to build a business website (2)
【服务器数据恢复】戴尔某型号服务器raid故障的数据恢复案例
2022全开源企业发卡网修复短网址等BUG_2022企业级多商户发卡平台源码
Cocos uses custom material to display problems
Mathematical modeling -- what is mathematical modeling
Whether runnable can be interrupted
There is a cow, which gives birth to a heifer at the beginning of each year. Each heifer has a heifer at the beginning of each year since the fourth year. Please program how many cows are there in the
使用cpolar建立一个商业网站(2)
Basic knowledge sorting of mongodb database
Oracle control file loss recovery archive mode method
HPDC smart base Talent Development Summit essay
Getting started with webgl (2)
[quick start for Digital IC Validation] 26. Ahb - sramc (6) for system verilog project practice (Basic Points of APB Protocol)
MongoD管理数据库的方法介绍
Ctfshow, information collection: web13
【目标检测】YOLOv5跑通VOC2007数据集