NewtonJointSetUserData void NewtonJointSetUserData( const NewtonJoint* joint, void* userData)
Store a user defined data value with the joint.
- const NewtonJoint *joint - pointer to the joint.
- void *userDataPtr - pointer to the user defined user data value.
- The application can store a user defined value with the Joint. This value can be the pointer to a structure containing some application data for special effect. if the application allocate some resource to store the user data, the application can register a joint destructor to get rid of the allocated resource when the Joint is destroyed