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 TypeMethodDescriptionfloat
Return the distance.void
setDistance
(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, va
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods 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:
getDistance
in interfaceConstLod
- Returns:
- the distance (in meters)
-