NewtonJointSetDestructor
NewtonJointSetDestructor
void NewtonJointSetDestructor( const NewtonJoint* joint, NewtonConstraintDestructor destructor)
Usage
Register a destructor callback to be called when the joint is about to be destroyed.
Parameters
- const NewtonJoint *joint - pointer to the joint.
- NewtonJointCallBack destructor - pointer to the joint destructor callback.
Return
- nothing.
Remarks
- 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.