Box2D.Dynamics.Body.ApplyForce C# (CSharp) Method

ApplyForce() public method

Apply a force at a world point. If the force is not applied at the center of mass, it will generate a torque and affect the angular velocity. This wakes up the body.
public ApplyForce ( Vec2 force, Vec2 point ) : void
force Box2D.Common.Vec2 the world force vector, usually in Newtons (N).
point Box2D.Common.Vec2 the world position of the point of application.
return void
        public void ApplyForce(Vec2 force, Vec2 point)
        {
            if (m_type != BodyType.Dynamic)
            {
                return;
            }

            if (Awake == false)
            {
                Awake = true;
            }

            // m_force.addLocal(force);
            // Vec2 temp = tltemp.get();
            // temp.set(point).subLocal(m_sweep.c);
            // m_torque += Vec2.cross(temp, force);

            Force.X += force.X;
            Force.Y += force.Y;

            Torque += (point.X - Sweep.C.X) * force.Y - (point.Y - Sweep.C.Y) * force.X;
        }