|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimogl.collision.CollisionFinder
public class CollisionFinder
This class can be used to find different kinds of collisions
| Constructor Summary | |
|---|---|
CollisionFinder()
Creates a new CollisionFinder object |
|
| Method Summary | |
|---|---|
boolean |
collided(AbstractGameObject go1,
AbstractGameObject go2)
This method checks, if a collision between the two specified game objects has occured. |
boolean |
collided(AbstractMesh mesh1,
AbstractMesh mesh2)
This method checks, if a collision between the two specified meshes has occured. |
java.util.ArrayList<Triangle> |
collided(AbstractMesh mesh,
Terrain terrain)
This method checks, if a collision between the bottom center point of the mesh and the terrain has occured and returns the triangle(s) that has/have collided with the mesh. |
boolean |
collided(Point3D point,
AbstractGameObject go)
This method checks for collision between the specified point and the game object |
boolean |
collided(Point3D point,
AbstractMesh mesh)
This method checks for collision between the specified point and the mesh |
java.util.ArrayList<Triangle> |
collided(Point3D point,
Terrain terrain)
This method checks, if a collision between a point and the terrain has occured. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollisionFinder()
| Method Detail |
|---|
public boolean collided(AbstractMesh mesh1,
AbstractMesh mesh2)
mesh1 - first meshmesh2 - second mesh
public boolean collided(AbstractGameObject go1,
AbstractGameObject go2)
go1 - first game objectgo2 - second game objet
public boolean collided(Point3D point,
AbstractMesh mesh)
point - point to check for collision with meshmesh - mesh to check for collision with point
public boolean collided(Point3D point,
AbstractGameObject go)
point - point to check for collision with game objectgo - game object to check for collision with point
public java.util.ArrayList<Triangle> collided(AbstractMesh mesh,
Terrain terrain)
mesh - mesh, that could have been collided with the terrainterrain - terrain to check collision with
public java.util.ArrayList<Triangle> collided(Point3D point,
Terrain terrain)
point - point to check collision withterrain - terrain to check collision with
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||