Difference between revisions of "NewtonBodyGetMatrix"

From Newton Wiki
Jump to: navigation, search
m (1 revision imported)
(No difference)

Latest revision as of 08:02, 10 June 2019


void NewtonBodyGetMatrix( const NewtonBody* bodyPtr, dFloat* matrixPtr)


Get the transformation matrix of a rigid body.


  • const NewtonBody *bodyPtr - pointer to the body.
  • const dFloat *matrixPtr - pointer to an array of 16 floats that will hold the global matrix of the rigid body.


  • Nothing.


  • The matrix should be arranged in row-major order (this is the way directX stores matrices). If you are using OpenGL matrices (column-major) you will need to transpose you matrices into a local array, before passing them to Newton.

See also

NewtonBodySetMatrix NewtonBodyGetPosition