💣Destruction
is an Entity Component
Last updated
is an Entity Component
Last updated
Destruction is a personal favourite. It has one function, and that's to blow entities to smithereens. That's it. Boom.
It should be noted, once an entity is destroyed it loses its functionality. E.g.: if you had a link set up to make the object move or rotate at a later stage, if it has been destroyed it will no longer do those things. Just be careful in planning out what objects get destroyed and when, and you're all good to go!
Debris velocity - dictates the speed and range with which the entity explodes
Debris lifetime - dictates how long the broken parts of the entity stay on the ground before disappearing