Hello! I am new in coding and in PlayCanvas. My code for collision isn’t working properly. I am not entirely sure what is wrong. Both entities have RigidBody (Dynamic) and Collision component.
Here is the Collision code:
Instead of getting destroyed when hit by the witch, the cat was being pushed (because it’s Dynamic), but I want it to be destroyed. I set the RigidBody for the witch so I can applyForce for its movement.
What am I doing wrong? Thank you so much!
Link for the editor: PlayCanvas | HTML5 Game Engine