void NewtonJointSetDestructor( const NewtonJoint* joint, NewtonConstraintDestructor destructor)
Register a destructor callback to be called when the joint is about to be destroyed.
- const NewtonJoint *joint - pointer to the joint.
- NewtonJointCallBack destructor - pointer to the joint destructor callback.
- If application stores any resource with the joint, or the application wants to be notified when the joint is about to be destroyed. The application can register a destructor call back with the joint.