applyForce method

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

Applies a continuous force (world space) for the current step; atWorldPoint makes it produce torque about the center of mass.

Implementation

void applyForce(Vector3 force, {Vector3? atWorldPoint}) {
  final handle = _handle;
  if (handle != null) {
    _sim!.applyForce(handle, force, atWorldPoint: atWorldPoint);
  }
}