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

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

Applies a Transform-local impulse to the objects mass center. You don't usually need to apply Time.TimeMult here because it is inteded to be a one-time force impact.
public ApplyLocalImpulse ( System.Vector2 impulse ) : void
impulse System.Vector2
Результат void
        public void ApplyLocalImpulse(Vector2 impulse)
        {
            if (this.body == null) return;
            this.ApplyWorldImpulse(
                this.gameobj.Transform.GetWorldVector(new Vector3(impulse)).Xy,
                this.gameobj.Transform.GetWorldPoint(this.LocalMassCenter));
        }

Same methods

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