Can we make collision happen between physics and non-physics bodies?
I want to filter the collision. If player hits coins score has to count physics engine should continue and game as well, player hits enmies game should be over.
Can we make collision happen between physics and non-physics bodies?
I want to filter the collision. If player hits coins score has to count physics engine should continue and game as well, player hits enmies game should be over.
Hi @ajayrathore0435,
Well, collisions must occur between two physical bodies in every case. However, it’s fairly simple to create collision filters which will make some bodies completely ignore other bodies. See the following guide for assistance on this:
https://docs.coronalabs.com/guide/physics/collisionDetection/index.html#collision-filtering
Best regards,
Brent
Hi @ajayrathore0435,
Well, collisions must occur between two physical bodies in every case. However, it’s fairly simple to create collision filters which will make some bodies completely ignore other bodies. See the following guide for assistance on this:
https://docs.coronalabs.com/guide/physics/collisionDetection/index.html#collision-filtering
Best regards,
Brent