using GlitchyEngine.Math; namespace GlitchyEngine; public class Rigidbody2D : Component { /// /// 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. /// /// The world force vector, usually in Newtons (N). /// The world position of the point of application. /// Wake up the body public void ApplyForce(float2 force, float2 point, bool wakeUp = true) { ScriptGlue.RigidBody2D_ApplyForce(Entity._uuid, force, point, wakeUp); } /// /// Apply a force to the center of mass. /// This wakes up the body. /// /// The world force vector, usually in Newtons (N). /// Wake up the body public void ApplyForceToCenter(float2 force, bool wakeUp = true) { ScriptGlue.RigidBody2D_ApplyForceToCenter(Entity._uuid, force, wakeUp); } }