NewtonWorldGetUserData

From Newton Wiki
Jump to: navigation, search

NewtonWorldGetUserData

Syntax:

void* NewtonWorldGetUserData(const NewtonWorld* newtonWorld)

Usage

Retrieve a user previously stored user defined value with the world.

Parameters

  • const NewtonWorld *newtonWorld - is the pointer to the newton world.

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, this function returns this pointer stored with the Newton world.

See also

UserData, NewtonWorldSetUserData, NewtonBodySetUserData NewtonWorldSetUserData