当前位置:网站首页>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;
边栏推荐
- Pat grade a 1103 integer factorizatio
- Ctfshow, information collection: web8
- Comparable and comparator of sorting
- jacoco代码覆盖率
- What is Base64?
- 【服务器数据恢复】某品牌StorageWorks服务器raid数据恢复案例
- Oracle control file loss recovery archive mode method
- [quick start of Digital IC Verification] 19. Basic grammar of SystemVerilog learning 6 (thread internal communication... Including practical exercises)
- 【数字IC验证快速入门】23、SystemVerilog项目实践之AHB-SRAMC(3)(AHB协议基本要点)
- Database exception resolution caused by large table delete data deletion
猜你喜欢
有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?
Ctfshow, information collection: web9
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
简述keepalived工作原理
Getting started with webgl (4)
【數字IC驗證快速入門】26、SystemVerilog項目實踐之AHB-SRAMC(6)(APB協議基本要點)
Introduction of mongod management database method
Ida Pro reverse tool finds the IP and port of the socket server
TypeScript 发布 4.8 beta 版本
[data mining] visual pattern mining: hog feature + cosine similarity /k-means clustering
随机推荐
Configure mongodb database in window environment
Super signature principle (fully automated super signature) [Yun Xiaoduo]
如何在opensea批量发布NFT(Rinkeby测试网)
How to build your own super signature system (yunxiaoduo)?
[机缘参悟-40]:方向、规则、选择、努力、公平、认知、能力、行动,读3GPP 6G白皮书的五层感悟
What are the safest securities trading apps
【数字IC验证快速入门】29、SystemVerilog项目实践之AHB-SRAMC(9)(AHB-SRAMC SVTB Overview)
Ctfshow, information collection: web6
Cocos makes Scrollview to realize the effect of zooming in the middle and zooming out on both sides
HPDC smart base Talent Development Summit essay
[quick start of Digital IC Verification] 24. AHB sramc of SystemVerilog project practice (4) (AHB continues to deepen)
Basic knowledge sorting of mongodb database
Ctfshow, information collection: web7
[quick start of Digital IC Verification] 18. Basic grammar of SystemVerilog learning 5 (concurrent threads... Including practical exercises)
Whether runnable can be interrupted
[quick start of Digital IC Verification] 26. Ahb-sramc of SystemVerilog project practice (6) (basic points of APB protocol)
Android -- jetpack: the difference between livedata setValue and postvalue
[markdown grammar advanced] make your blog more exciting (IV: set font style and color comparison table)
Zhongang Mining: Fluorite continues to lead the growth of new energy market
[quick start for Digital IC Validation] 26. Ahb - sramc (6) for system verilog project practice (Basic Points of APB Protocol)