NewtonJointSetUserData

From Newton Wiki
Jump to: navigation, search

NewtonJointSetUserData

NewtonJointSetUserData void NewtonJointSetUserData( const NewtonJoint* joint, void* userData)

Usage

Store a user defined data value with the joint.

Parameters

  • const NewtonJoint *joint - pointer to the joint.
  • void *userDataPtr - pointer to the user defined user data value.

Return

  • Nothing.

Remarks

  • 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

See also

NewtonConstraintCreateJoint NewtonJointSetDestructor