|
Hoaxer: In movies we have seen a lot interesting moments, such as breaking of wooden objects. Question is how you make objects to be destroyed so... naturally - is there number of predefined sequences, or it is done with physics system? If so, then how it is implemented on entities level - some hierarchy of objects?
Rick Ellis: Each entity in the world is made out of a "material" that specifies various attributes of that entity. Things like what gibs to spawn when broken, strength and weight of the object, whether it can float, etc. Each gib becomes a physics entity that is then simulated as it falls to the ground, bounces, etc.
To make complex objects like doors made from wooden planks, several props are put together and parented to something (a door in this case) so they all act as a unit when the door is opened or closed. Since each piece is a separate entity, breaking it causes the desired result: You see the plank fracture into wooden gibs and fall out of the door while the remainder of the door stays intact.
|