NewtonBodyGetWorld

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

NewtonBodyGetWorld

NewtonWorld* NewtonBodyGetWorld(const NewtonBody* bodyPtr)

Usage

Retrieve get the pointer to the world from the body.

Parameters

  • const NewtonBody *bodyPtr - pointer to the body.

Return

  • the world that own this body.

Remarks

  • The application can use this function to determine what world own this body. If the application have to get the world from a joint, it can do so by getting one of the bodies attached to the joint and getting the world from that body.