All Implemented Interfaces:
ConstJoltPhysicsObject, ConstLod, AutoCloseable, Comparable<JoltPhysicsObject>

public class Lod extends JoltPhysicsObject implements ConstLod
A level of detail (LOD) in a Geometry. (native type: DebugRenderer::LOD)
  • Constructor Details

    • Lod

      public Lod()
      Instantiate a default LOD.
    • Lod

      public Lod(ConstLod original)
      Instantiate a copy of the specified LOD.
      Parameters:
      original - the LOD to duplicate (not null, unaffected)
  • Method Details

    • setDistance

      public void setDistance(float distance)
      Alter the distance. (native member: mDistance)
      Parameters:
      distance - the desired distance (in meters)
    • getDistance

      public float getDistance()
      Return the distance. The LOD is unaffected. (native member: mDistance)
      Specified by:
      getDistance in interface ConstLod
      Returns:
      the distance (in meters)