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

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

Applies a Transform-local angular force to the object. You don't need to apply Time.TimeMult here, the physics simulation takes care of this.
public ApplyLocalForce ( float angularForce ) : void
angularForce float
Результат void
        public void ApplyLocalForce(float angularForce)
        {
            MathF.CheckValidValue(angularForce);
            if (this.body == null) return;
            if (Scene.PhysicsFixedTime) angularForce *= Time.TimeMult;
            this.body.ApplyTorque(angularForce / Time.SPFMult);
        }

Same methods

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