|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsim.physics2D.forceGenerator.ForceEngine
public class ForceEngine
The ForceEngine manages the application of forces and torques to objects.
Method Summary | |
---|---|
void |
addForceField(Double2D forceField)
Adds a force that is applied to every object at every timestep. |
void |
addForces()
Causes all force generators that are registered with the dynamics engine to add their forces to the appropriate objects |
void |
clearForceField()
Clear all force fields |
static ForceEngine |
getInstance()
|
void |
registerForceGenerator(ForceGenerator forceGenerator)
Registers a force generator with the force engine. |
void |
registerMobileObject(MobileObject2D objMO)
Registers a mobile object with the force generator. |
static ForceEngine |
reset()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ForceEngine getInstance()
public static ForceEngine reset()
public void registerForceGenerator(ForceGenerator forceGenerator)
public void registerMobileObject(MobileObject2D objMO)
public void addForceField(Double2D forceField)
public void clearForceField()
public void addForces()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |