vooga.physicsEngine
Class ArbiterFinder

java.lang.Object
  extended by vooga.physicsEngine.ArbiterFinder

public class ArbiterFinder
extends java.lang.Object

A utility class called by PhysicalEngine.processPhysics to update the list of active arbiters corresponding to a list of bodies.

Author:
Peng Shi

Constructor Summary
ArbiterFinder()
           
 
Method Summary
static java.util.List<Arbiter> findArbiters(java.util.List<PhysicalParameters> bodies)
          Update the list of active arbiters by detecting new collisions between a given list of bodies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArbiterFinder

public ArbiterFinder()
Method Detail

findArbiters

public static java.util.List<Arbiter> findArbiters(java.util.List<PhysicalParameters> bodies)
Update the list of active arbiters by detecting new collisions between a given list of bodies. This method modifies the List referenced by its first parameter.

Parameters:
bodies - reference to a list of bodies; the method does not modify this.
Returns:
a list of Arbiters between these bodies.