Beispiel #1
0
 /** @see net.phys2d.raw.CollisionSpace#add(net.phys2d.raw.Body) */
 public void add(Body body) {
   body.configureRestingBodyDetection(hitTolerance, rotationTolerance, positionTolerance);
   super.add(body);
 }
Beispiel #2
0
 /**
  * Remove a body from the simulation
  *
  * @param body The body to be removed
  */
 public void remove(Body body) {
   clearArbiters(body);
   super.remove(body);
 }
Beispiel #3
0
  /** Remove all the elements from this world */
  public void clear() {
    super.clear();

    joints.clear();
  }