net.java.dev.joode.force
Class Force

java.lang.Object
  extended by net.java.dev.joode.WorldObject
      extended by net.java.dev.joode.force.Force
All Implemented Interfaces:
java.io.Serializable, SimState
Direct Known Subclasses:
NewtonGravity, UniversalGravity

public abstract class Force
extends WorldObject

Only gravity subclasses are implemented at the moment. Do not extend yourself

Author:
Harald Dietrich
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.java.dev.joode.WorldObject
data, tag, world
 
Constructor Summary
Force(World world)
           
 
Method Summary
abstract  void applyForce(Body body)
          applies the force to a body that is in simulation, called by the stepper functions
 void destroy()
           
 
Methods inherited from class net.java.dev.joode.WorldObject
partialCloneWorldObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.java.dev.joode.SimState
cloneState
 

Constructor Detail

Force

public Force(World world)
Method Detail

destroy

public void destroy()
Specified by:
destroy in class WorldObject

applyForce

public abstract void applyForce(Body body)
applies the force to a body that is in simulation, called by the stepper functions

Parameters:
body -