applyForce

expect fun applyForce(force: Vec2, point: Vec2, wake: Boolean = true)

Apply a force at a world point. If the force is not applied at the center of mass, it will generate a torque.

Parameters

force

The world force vector (usually in Newtons)

point

The world position of the point of application

wake

Whether to wake up the body if sleeping