NewtonBodyGetOmega

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

See also

NewtonBodySetOmega