Remove when collision is too high

How do i remove an object when it collides with something and the force of the collision is too high, so an example would be like angry birds when the bird hits the box to hard, it gets destroyed. I already tried if (event.force > 3) then removeSelf(). Thank you for any comments. [import]uid: 38977 topic_id: 19791 reply_id: 319791[/import]

Check out Ghosts VS Monsters sample code :slight_smile:

What’s the problem you are facing with if event.force > 3 then ?

Peach :slight_smile: [import]uid: 52491 topic_id: 19791 reply_id: 76862[/import]

well it doesn’t exactly work every time, sometimes it works sometimes it doesn’t and it usually won’t work when the side of the ship collides with something at a certain force. [import]uid: 38977 topic_id: 19791 reply_id: 76867[/import]

Are you printing the force to ensure it’s not working and the force isn’t actually just < 3 ?

Try printing force on each collision to troubleshoot, depending on your setup perhaps 3 is too high.

Peach :slight_smile: [import]uid: 52491 topic_id: 19791 reply_id: 76875[/import]