# NewtonBodyGetMatrix

## NewtonBodyGetMatrix

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

## Usage

Get the transformation matrix of a rigid body.

## Parameters

- 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.

## Return

- Nothing.

## Remarks

- 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.