当前位置:网站首页>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;
边栏推荐
- HW primary flow monitoring, what should we do
- Cocos makes Scrollview to realize the effect of zooming in the middle and zooming out on both sides
- Introduction of mongod management database method
- 简述keepalived工作原理
- 如何在opensea批量发布NFT(Rinkeby测试网)
- Starting from 1.5, build a microservice framework link tracking traceid
- Nacos一致性协议 CP/AP/JRaft/Distro协议
- Implementation of crawling web pages and saving them to MySQL using the scrapy framework
- [server data recovery] a case of RAID data recovery of a brand StorageWorks server
- Nacos conformance protocol cp/ap/jraft/distro protocol
猜你喜欢

Actually changed from 408 to self proposition! 211 North China Electric Power University (Beijing)

Ctfshow, information collection: web6

【数字IC验证快速入门】20、SystemVerilog学习之基本语法7(覆盖率驱动...内含实践练习)

2. Heap sort "hard to understand sort"

Yunxiaoduo software internal test distribution test platform description document

Mathematical modeling -- what is mathematical modeling

【搞船日记】【Shapr3D的STL格式转Gcode】

如何在opensea批量发布NFT(Rinkeby测试网)

【数字IC验证快速入门】18、SystemVerilog学习之基本语法5(并发线程...内含实践练习)

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
随机推荐
leetcode 241. Different ways to add parentheses design priority for operational expressions (medium)
Starting from 1.5, build a microservice framework link tracking traceid
【原创】一切不谈考核的管理都是扯淡!
【数字IC验证快速入门】29、SystemVerilog项目实践之AHB-SRAMC(9)(AHB-SRAMC SVTB Overview)
[deep learning] image hyperspectral experiment: srcnn/fsrcnn
@ComponentScan
[deep learning] semantic segmentation experiment: UNET network /msrc2 dataset
Summer safety is very important! Emergency safety education enters kindergarten
什麼是數據泄露
写一篇万字长文《CAS自旋锁》送杰伦的新专辑登顶热榜
What is Base64?
大表delete删数据导致数据库异常解决
leetcode 241. Different Ways to Add Parentheses 为运算表达式设计优先级(中等)
Ctfshow, information collection: web1
[data mining] visual pattern mining: hog feature + cosine similarity /k-means clustering
Ctfshow, information collection: web13
Getting started with webgl (3)
Stm32f103c8t6 PWM drive steering gear (sg90)
[quick start of Digital IC Verification] 23. AHB sramc of SystemVerilog project practice (3) (basic points of AHB protocol)
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