Collision detection & Collision ignore

can anyone tell me how to detect collision in cocos creator and how I can ignore the collision between two rigid bodies? kindly describe with an example. thanks in advance I am using version 3.7.2.

Documentation is you friend → Physics System · Cocos Creator

can you post any real-time examples of collision detection and collision ignorance?

Go to Project Settings → Physics → Collision Matrix
There, you can create groups and assign which group interact/ignore with which group.
Then, in your node’s collider, assign the desired group for it.

I’d suggest you to please read documentation and tutorials first and read them alot.
This habit will help you with your game development journey :blush:!
Just my two cents and enjoy coding!

1 Like



1 Like