Package com.jme3.terrain.geomipmap
Interface TerrainGridListener
public interface TerrainGridListener
Notifies the user of grid change events, such as moving to new grid cells.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called whenever the camera has moved full grid cells.void
tileAttached
(Vector3f cell, TerrainQuad quad) Called when a TerrainQuad is attached to the scene and is visible (attached to the root TerrainGrid)void
tileDetached
(Vector3f cell, TerrainQuad quad) Called when a TerrainQuad is detached from its TerrainGrid parent: it is no longer on the scene graph.
-
Method Details
-
gridMoved
Called whenever the camera has moved full grid cells. This triggers new tiles to load.- Parameters:
newCenter
-
-
tileAttached
Called when a TerrainQuad is attached to the scene and is visible (attached to the root TerrainGrid)- Parameters:
cell
- the cell that is moved intoquad
- the quad that was just attached
-
tileDetached
Called when a TerrainQuad is detached from its TerrainGrid parent: it is no longer on the scene graph.- Parameters:
cell
- the cell that is moved intoquad
- the quad that was just detached
-