Method GetAngularVelocity
GetAngularVelocity(in PhysicsWorld, int)
Get the angular velocity of a rigid body around it's center of mass (in world space)
Declaration
public static float3 GetAngularVelocity(this in PhysicsWorld world, int rigidBodyIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| PhysicsWorld | world | The world to act on. |
| int | rigidBodyIndex | Zero-based index of the rigid body. |
Returns
| Type | Description |
|---|---|
| float3 | The angular velocity. |