net.jinx.physics
Interface Force

All Known Implementing Classes:
Gravity, SpringManager

public interface Force


Method Summary
 void added(PhysicalObject obj)
          Called by Universe to notify this Force that a PhysicalObject has been added to the simulation.
 void applyForce(PhysicalObject object)
          Provides the force acting on object due to this Force.
 void removed(PhysicalObject obj)
          Called by Universe to notify this Force that a PhysicalObject has been removed from the simulation.
 

Method Detail

added

void added(PhysicalObject obj)
Called by Universe to notify this Force that a PhysicalObject has been added to the simulation.

Parameters:
obj - the PhysicalObject that was added.

removed

void removed(PhysicalObject obj)
Called by Universe to notify this Force that a PhysicalObject has been removed from the simulation.

Parameters:
obj - the PhysicalObject that was removed.

applyForce

void applyForce(PhysicalObject object)
Provides the force acting on object due to this Force.

Parameters:
object - the PhysicalObject.