|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.planeth.gtroids.physics.helper.CollisionHelper
Helper to check for collisions between AbstractPhysicalObjects
| Constructor Summary | |
CollisionHelper()
|
|
| Method Summary | |
static boolean |
checkCollision(AbstractPhysicalObject obj1,
AbstractPhysicalObject obj2)
Checks for collision of obj1 and obj2 Returns true, if a collision is detected |
static void |
handleBorderCollision(AbstractAnimatedObject obj,
GamePanel gamePanel)
Handles the borderCollisions of the passed object Changes the vel and circumferencial vel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CollisionHelper()
| Method Detail |
public static boolean checkCollision(AbstractPhysicalObject obj1,
AbstractPhysicalObject obj2)
obj1 - first object for the checkobj2 - second object for the check
public static void handleBorderCollision(AbstractAnimatedObject obj,
GamePanel gamePanel)
obj - the object for the checkgamePanel - the panel, where the object lives
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||