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

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

Applies a Transform-local force to the objects mass center. You don't need to apply Time.TimeMult here, the physics simulation takes care of this.
public ApplyLocalForce ( System.Vector2 force ) : void
force System.Vector2
Результат void
        public void ApplyLocalForce(Vector2 force)
        {
            if (this.body == null) return;
            this.ApplyWorldForce(
                this.gameobj.Transform.GetWorldVector(force),
                this.gameobj.Transform.GetWorldPoint(this.LocalMassCenter));
        }

Same methods

RigidBody::ApplyLocalForce ( System.Vector2 force, System.Vector2 applyAt ) : void
RigidBody::ApplyLocalForce ( float angularForce ) : void