de.rico.engine.geometry.collision.picking
Interface MeshPickerIface

All Known Implementing Classes:
OGLMeshPicker, RayMeshPicker

public interface MeshPickerIface

This interface specifies the methods that need to be implemented by classes that can be used for picking meshes in the scene

Author:
Frank Bruns

Method Summary
 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.
 

Method Detail

getMesh

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. If no mesh was picked, the method returns null.

Parameters:
meshes - meshes to take into consideration for picking
screenX - x-position on screen
screenY - y-position on screen
Returns:
picked mesh