Duality.Components.Physics.RigidBody.ApplyLocalImpulse C# (CSharp) Method

ApplyLocalImpulse() public method

Applies a Transform-local impulse to the specified point. 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, System.Vector2 applyAt ) : void
impulse System.Vector2
applyAt System.Vector2
return void
        public void ApplyLocalImpulse(Vector2 impulse, Vector2 applyAt)
        {
            this.ApplyWorldImpulse(
                this.gameobj.Transform.GetWorldVector(new Vector3(impulse)).Xy,
                this.gameobj.Transform.GetWorldPoint(new Vector3(applyAt)).Xy);
        }

Same methods

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