当前位置:网站首页>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;
边栏推荐
- 15. Using the text editing tool VIM
- Getting started with webgl (2)
- [quick start of Digital IC Verification] 22. Ahb-sramc of SystemVerilog project practice (2) (Introduction to AMBA bus)
- TypeScript 发布 4.8 beta 版本
- Stm32f103c8t6 PWM drive steering gear (sg90)
- 【跟着江科大学Stm32】STM32F103C8T6_PWM控制直流电机_代码
- Do you know the relationship between the most important indicators of two strong wind control and the quality of the customer base
- [deep learning] semantic segmentation experiment: UNET network /msrc2 dataset
- How to build your own super signature system (yunxiaoduo)?
- Comparable and comparator of sorting
猜你喜欢
Ctfshow, information collection: web5
TypeScript 发布 4.8 beta 版本
MongoD管理数据库的方法介绍
微信小程序 01
居然从408改考自命题!211华北电力大学(北京)
[data mining] visual pattern mining: hog feature + cosine similarity /k-means clustering
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
The difference between full-time graduate students and part-time graduate students!
HPDC smart base Talent Development Summit essay
全日制研究生和非全日制研究生的区别!
随机推荐
Whether runnable can be interrupted
【原创】一切不谈考核的管理都是扯淡!
【数字IC验证快速入门】22、SystemVerilog项目实践之AHB-SRAMC(2)(AMBA总线介绍)
Nacos conformance protocol cp/ap/jraft/distro protocol
Introduction of mongod management database method
HPDC smart base Talent Development Summit essay
[机缘参悟-40]:方向、规则、选择、努力、公平、认知、能力、行动,读3GPP 6G白皮书的五层感悟
Stream learning notes
"Baidu Cup" CTF competition 2017 February, web:include
Implementation of crawling web pages and saving them to MySQL using the scrapy framework
Runnable是否可以中断
使用Scrapy框架爬取网页并保存到Mysql的实现
避坑:Sql中 in 和not in中有null值的情况说明
[make a boat diary] [shapr3d STL format to gcode]
Ctfshow, information collection: web13
How to understand that binary complement represents negative numbers
Super signature principle (fully automated super signature) [Yun Xiaoduo]
15. Using the text editing tool VIM
unnamed prototyped parameters not allowed when body is present
银行需要搭建智能客服模块的中台能力,驱动全场景智能客服务升级