|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.geometry.AbstractMesh
de.rico.engine.geometry.MeshDL
de.rico.engine.geometry.AbstractGroundMesh
public abstract class AbstractGroundMesh
This class represents a mesh that is used for the scene's ground. Ground meshes are set to be pickable intially.
Constructor Summary | |
---|---|
AbstractGroundMesh(boolean smooth)
Creates a new mesh that is considered to be some kind of ground. |
|
AbstractGroundMesh(boolean smooth,
BoundingVolume type)
Creates a new mesh that is considered to be some kind of ground. |
Method Summary | |
---|---|
float |
getLength()
Returns the length of the ground mesh. |
SearchGrid |
getSearchGrid()
Returns the search grid that is used for path finding. |
float |
getWidth()
Returns the width of the ground mesh |
void |
initSearchGrid(int gridNodeSize)
Initializes a search grid to the ground mesh, that will be used for path finding on the mesh. |
Methods inherited from class de.rico.engine.geometry.MeshDL |
---|
addFace, destroy, draw, finishModel, getDisplayListId, getFaces, getFacesTransformed, specializedDraw, update |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractGroundMesh(boolean smooth)
smooth
- create smoothed normals for the meshpublic AbstractGroundMesh(boolean smooth, BoundingVolume type)
smooth
- create smoothed normals for the meshtype
- value from the BoundingValue enumertationMethod Detail |
---|
public float getWidth()
public float getLength()
public void initSearchGrid(int gridNodeSize)
gridNodeSize
- size of a cell in
the grid (the nearest power of two to the specified value will be used)public SearchGrid getSearchGrid()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |