clearForces method

void clearForces()

Sets all body forces in the world to zero.

Implementation

void clearForces() {
  final bodies = this.bodies;
  final N = bodies.length;
  for (int i = 0; i != N; i++) {
    final b = bodies[i];
    b.force.set(0, 0, 0);
    b.torque.set(0, 0, 0);
  }
}