|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CollisionDetector
Method Summary | |
---|---|
void |
added(PhysicalObject obj)
Called by Universe to notify that a PhysicalObject has been added to the simulation. |
java.util.Set |
firstContacts(PhysicalObject obj,
float initial,
float deltaTime,
Universe u)
Checks for collisions between PhysicalObject instances previously added via the added(PhysicalObject) method and obj. |
void |
removed(PhysicalObject obj)
Called by Universe to notify that a PhysicalObject has been removed from the simulation. |
Method Detail |
---|
void added(PhysicalObject obj)
obj
- the PhysicalObject that was added.void removed(PhysicalObject obj)
obj
- the PhysicalObject that was removed.java.util.Set firstContacts(PhysicalObject obj, float initial, float deltaTime, Universe u)
obj
- the object that collisions are being detected for.u
- the Universe that collisions are being detected in.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |