Class TerrainShapeCreator


  • public class TerrainShapeCreator
    extends Object
    Class that can create a terrain collision shape
    Author:
    Darius Dinger
    • Constructor Detail

      • TerrainShapeCreator

        public TerrainShapeCreator()
    • Method Detail

      • createTerrainShape

        public static com.bulletphysics.collision.shapes.BvhTriangleMeshShape createTerrainShape​(Terrain terr,
                                                                                                 int numQuads)
        Creating a static collision shape for a terrain with a specific resolution.
        Parameters:
        terr - Terrain to create the shape for
        numQuads - Quads of the shape per row/column
        Returns:
        Created static terrain shape