NewtonWorldSetUserData
NewtonWorldSetUserData
Syntax:
void NewtonWorldSetUserData (const NewtonWorld* const newtonWorld, void* const userData)
Usage
Stores a user defined pointer value with the world.
Parameters
- const NewtonWorld *newtonWorld - is the pointer to the newton world.
- void *userDataPtr - pointer to the user defined user data value.
Description
The application can store a user defined value with the Newton world. The user data is useful for application developing object oriented classes based on the Newton API as the pointer can be actual pointer to the class.
Remarks
- The application can attach custom data to the Newton world. Newton will never look at this data.
- The user data is useful for application developing object oriented classes based on the Newton API.
See also
UserData, NewtonWorldGetUserData, NewtonBodyGetUserData, NewtonWorldGetUserData