Interface ChunkMeshGenerator

All Known Implementing Classes:
FacesMeshGenerator

public interface ChunkMeshGenerator
The contract for a chunk mesh implementation.
  • Method Details

    • createNode

      com.jme3.scene.Node createNode(Chunk chunk)
      Create the node for the chunk.
      Parameters:
      chunk - to create the node for
      Returns:
      the node holding all chunk geometries
    • createCollisionMesh

      com.jme3.scene.Mesh createCollisionMesh(Chunk chunk)
      Create the collision mesh for the chunk.
      Parameters:
      chunk - to create the collision mesh for
      Returns:
      the collision mesh of the chunk
    • createAndSetNodeAndCollisionMesh

      void createAndSetNodeAndCollisionMesh(Chunk chunk)
      Create the node and the collision mesh for the chunk. The node and collision mesh should be set on the chunk. This is a combination of the createNode(Chunk) and createCollisionMesh(Chunk) methods.
      Parameters:
      chunk -