applyForce abstract method

void applyForce(
  1. Vector3 force, {
  2. Vector3? atWorldPoint,
})

Applies a continuous force (in world space) for the duration of the current step. Use applyImpulse for an instantaneous change in momentum. When atWorldPoint is provided, the force produces a torque about the body's center of mass.

Implementation

void applyForce(Vector3 force, {Vector3? atWorldPoint});