Thursday, November 24, 2022
HomeGame DevelopmentConditional Collision with Physics Engine - Cocos Creator

Conditional Collision with Physics Engine – Cocos Creator


Hello guys? I’m making a block breaking sport with my co-workers proper now. We’re utilizing the physics engine (Box2d) to examine for collisions and use the logic to cut back the block’s well being each time it collides.

Whereas making this time, I wanted an extra perform, and if the block collides with 1 well being and turns into 0, I wish to make a perform that passes by means of the projectile moderately than colliding with the block. So a block with 1 hit level can cross by means of it with out colliding.

How can I make this perform work?


I’m unsure to have effectively understood you query, are you able to disable the rigidbody of that ingredient when it’s well being is 1 ?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments