Difference between revisions of "NewtonBodyGetOmega"
m (1 revision imported)
Latest revision as of 08:02, 10 June 2019
void NewtonBodyGetOmega( const NewtonBody* bodyPtr, dFloat* omega)
Get the global angular velocity (Omega) of the body.
- 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.
dVector omega; NewtonBodyGetOmega(body, &omega.m_x);
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.