Interface TerrainGridListener


public interface TerrainGridListener
Notifies the user of grid change events, such as moving to new grid cells.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    gridMoved(Vector3f newCenter)
    Called whenever the camera has moved full grid cells.
    void
    Called when a TerrainQuad is attached to the scene and is visible (attached to the root TerrainGrid)
    void
    Called when a TerrainQuad is detached from its TerrainGrid parent: it is no longer on the scene graph.
  • Method Details

    • gridMoved

      void gridMoved(Vector3f newCenter)
      Called whenever the camera has moved full grid cells. This triggers new tiles to load.
      Parameters:
      newCenter -
    • tileAttached

      void tileAttached(Vector3f cell, TerrainQuad quad)
      Called when a TerrainQuad is attached to the scene and is visible (attached to the root TerrainGrid)
      Parameters:
      cell - the cell that is moved into
      quad - the quad that was just attached
    • tileDetached

      void tileDetached(Vector3f cell, TerrainQuad quad)
      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 into
      quad - the quad that was just detached