Difference between revisions of "NewtonBodyGetOmega"
m (1 revision imported) |
|
(No difference)
|
Latest revision as of 08:02, 10 June 2019
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.