Duality.Components.Physics.RigidBody.ApplyLocalImpulse C# (CSharp) Метод

ApplyLocalImpulse() публичный Метод

Applies a Transform-local angular impulse to the object. You don't usually need to apply Time.TimeMult here because it is inteded to be a one-time force impact.
public ApplyLocalImpulse ( float angularImpulse ) : void
angularImpulse float
Результат void
        public void ApplyLocalImpulse(float angularImpulse)
        {
            MathF.CheckValidValue(angularImpulse);
            if (this.body == null) return;
            this.body.ApplyAngularImpulse(angularImpulse / Time.SPFMult);
        }

Same methods

RigidBody::ApplyLocalImpulse ( System.Vector2 impulse ) : void
RigidBody::ApplyLocalImpulse ( System.Vector2 impulse, System.Vector2 applyAt ) : void