sim.physics2D
Class PhysicsEngine2D

java.lang.Object
  extended by sim.physics2D.PhysicsEngine2D

public class PhysicsEngine2D
extends java.lang.Object

PhysicsEngine2D coordinates all the activities of the physics engine.


Constructor Summary
PhysicsEngine2D()
           
 
Method Summary
 void register(java.lang.Object obj)
          Registers a physical object, force generator, or constraint with the physics engine.
 void setNoCollisions(PhysicalObject2D c1, PhysicalObject2D c2)
          Turns off collision response for a pair of objects
 void setODESolver(ODESolver solver)
          Replace the default runge-kutta ODE integrator with a new one.
 void step(SimState state)
           
 void unRegister(java.lang.Object obj)
          Removes a constraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhysicsEngine2D

public PhysicsEngine2D()
Method Detail

setODESolver

public void setODESolver(ODESolver solver)
Replace the default runge-kutta ODE integrator with a new one.


step

public void step(SimState state)

register

public void register(java.lang.Object obj)
Registers a physical object, force generator, or constraint with the physics engine.


setNoCollisions

public void setNoCollisions(PhysicalObject2D c1,
                            PhysicalObject2D c2)
Turns off collision response for a pair of objects


unRegister

public void unRegister(java.lang.Object obj)
Removes a constraint