Difference between revisions of "NewtonBodySetOmega"

From Newton Wiki
Jump to: navigation, search
m (1 revision imported)
 
Line 14: Line 14:
 
== Remarks ==
 
== Remarks ==
  
The angular velocity vector is specified in global space.
+
The angular velocity vector is specified in global space, around the body's center of mass.
  
 
== See also ==
 
== See also ==

Latest revision as of 04:02, 18 June 2019

NewtonBodySetOmega

void NewtonBodySetOmega( const NewtonBody* bodyPtr, const dFloat* omega)

Usage

Set the global angular velocity of the body.

Parameters

  • const NewtonBody *bodyPtr - is the pointer to the body.
  • const dFloat *omega - pointer to an array of at least three floats containing the angular velocity vector.

Remarks

The angular velocity vector is specified in global space, around the body's center of mass.

See also

NewtonBodyGetOmega NewtonBodySetOmegaNoSleep