|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.geometry.collision.picking.RayMeshPicker
public class RayMeshPicker
This class uses a picking ray to find the mesh that has been clicked on and doesn't make use of the internal OpenGL mesthod.
Method Summary | |
---|---|
static RayMeshPicker |
getInstance()
Returns the RayMeshPicker singleton instance. |
AbstractMesh |
getMesh(java.util.List<AbstractMesh> meshes,
int screenX,
int screenY)
Returns the mesh that was clicked on, if it is set to be pickable. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RayMeshPicker getInstance()
public AbstractMesh getMesh(java.util.List<AbstractMesh> meshes, int screenX, int screenY)
MeshPickerIface
null
.
getMesh
in interface MeshPickerIface
meshes
- meshes to take into consideration for pickingscreenX
- x-position on screenscreenY
- y-position on screen
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |