Method ApplyAngularImpulse
ApplyAngularImpulse(ref PhysicsVelocity, in PhysicsMass, in float3)
Applies the angular impulse.
Declaration
public static void ApplyAngularImpulse(this ref PhysicsVelocity velocityData, in PhysicsMass massData, in float3 impulse)
Parameters
Type | Name | Description |
---|---|---|
PhysicsVelocity | velocityData | [in,out] Information describing the velocity. |
PhysicsMass | massData | Information describing the mass. |
float3 | impulse | The impulse. |
ApplyAngularImpulse(ref PhysicsVelocity, in PhysicsMass, float, in float3)
Applies the angular impulse.
Declaration
public static void ApplyAngularImpulse(this ref PhysicsVelocity velocityData, in PhysicsMass massData, float bodyScale, in float3 impulse)
Parameters
Type | Name | Description |
---|---|---|
PhysicsVelocity | velocityData | [in,out] Information describing the velocity. |
PhysicsMass | massData | Information describing the mass. |
float | bodyScale | The body scale. |
float3 | impulse | The impulse. |