source.ucregents.playground.physics
Interface IForceEntity

All Known Implementing Classes:
BaseFieldForceEntity, FieldForceEntity, Planet3, RangedForceEntity, ScaledMassFieldForce

public interface IForceEntity

Any entity that implements this interface is considered a force entity that will act forces upon other entities upon certian conditions such as ther distance from the entity or the location of the other entity.


Method Summary
 javax.vecmath.Vector2d getForceFor(MovingEntity be)
          Calculates the force to act on another entity
 boolean IntersectsWith(MovingEntity be)
           
 

Method Detail

getForceFor

javax.vecmath.Vector2d getForceFor(MovingEntity be)
Calculates the force to act on another entity

Parameters:
be - The force is calculated for this entity
Returns:
A vector2d of the force to act on the parameter entity

IntersectsWith

boolean IntersectsWith(MovingEntity be)