Game Development Community

Physx Damage Question

by none · in Torque 3D Professional · 05/21/2013 (8:55 am) · 2 replies

Hi! I'm finally about to make a physx destructible object. I'm not questioning how to do that but I am confused as to how the damage actually works. For example if I have a fence with breakable pieces along the whole fence, will the whole thing destroy explode if i shoot it or say if I shoot it with a rifle will the one area i shot break? Thanks for any clarifications.

#1
05/21/2013 (5:29 pm)
The PhysicsShape object has a destroy function that turns the whole physicsShape into what its datablock says.
You can have the physicsShape turn into nothing, a PhysicsDebris object, another physicsShape (that looks more destroyed), or a physicsDebirs and physicsShape.

In the T3D pacific demo they have many good examples.

It doesn't detect the part of the shape and destroy that side, the whole model is "destroyed" when it is hit.
#2
05/21/2013 (7:41 pm)
Thank you that answered my question perfectly!