NewtonBodyGetTransformCallback

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

NewtonBodyGetTransformCallback

 NewtonSetTransform NewtonBodyGetTransformCallback (const NewtonBody* body);

Usage

Returns the currently assigned transformation event callback of the body.

Parameters

  • const NewtonBody *bodyPtr - pointer to the body.

Return

  • Pointer to the function callback used to update the transformation matrix of the visual object that represents the rigid body.

Description

Returns the currently assigned transformation event callback of the body.

Remarks

  • Added since Newton 2.0
  • The function NewtonSetTransform callback is called by the Newton engine every time a visual object that represents the rigid body has changed. The application can obtain the pointer user data value that points to the visual object. The Newton engine does not call the NewtonSetTransform callback function for bodies that are inactive or have reached a state of stable equilibrium

See also

NewtonBodySetTransformCallback