NewtonWorldGetUserData

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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