Method SetAngularVelocityWorldSpace
SetAngularVelocityWorldSpace(ref PhysicsVelocity, in PhysicsMass, in quaternion, in float3)
Set the world-space angular velocity of a rigid body.
Declaration
public static void SetAngularVelocityWorldSpace(this ref PhysicsVelocity bodyVelocity, in PhysicsMass bodyMass, in quaternion bodyOrientation, in float3 angularVelocity)
Parameters
Type | Name | Description |
---|---|---|
PhysicsVelocity | bodyVelocity | [in,out] The body's PhysicsVelocity component. |
PhysicsMass | bodyMass | The body's PhysicsMass component. |
quaternion | bodyOrientation | The body's world-space rotation. |
float3 | angularVelocity | An angular velocity in world space specifying radians per second about each axis. |