NewtonBodyGetOmega
NewtonBodyGetOmega
void NewtonBodyGetOmega( const NewtonBody* bodyPtr, dFloat* omega)
Usage
Get the global angular velocity (Omega) of the body.
Parameters
- const NewtonBody *bodyPtr - is the pointer to the body
- dFloat *omega - pointer to an array of at least three floats to hold the angular velocity vector.
Examples
dVector omega; NewtonBodyGetOmega(body, &omega.m_x);
Remarks
The angular velocity vector is specified in global space. To get the local space angular velocity for a body, unrotate the resulting vector by body's rotation matrix.