java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.Lod
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstLod,AutoCloseable,Comparable<JoltPhysicsObject>
A level of detail (LOD) in a Geometry. (native type:
DebugRenderer::LOD)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatReturn the distance.voidsetDistance(float distance) Alter the distance.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Constructor Details
-
Lod
public Lod()Instantiate a default LOD. -
Lod
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:
getDistancein interfaceConstLod- Returns:
- the distance (in meters)
-