java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.WheelSettings
com.github.stephengold.joltjni.WheelSettingsTv
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstWheelSettings
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
Settings used to construct a
WheelTv
. (native type: WheelSettingsTV)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Count the active references to the nativeWheelSettingsTV
.void
Mark the nativeWheelSettingsTV
as embedded.toRef()
Create a counted reference to the nativeWheelSettingsTV
.Methods inherited from class com.github.stephengold.joltjni.WheelSettings
getEnableSuspensionForcePoint, getPosition, getRadius, getSteeringAxis, getSuspensionDirection, getSuspensionForcePoint, getSuspensionMaxLength, getSuspensionMinLength, getSuspensionPreloadLength, getSuspensionSpring, getWheelForward, getWheelUp, getWidth, setEnableSuspensionForcePoint, setPosition, setRadius, setSteeringAxis, setSuspensionDirection, setSuspensionForcePoint, setSuspensionMaxLength, setSuspensionMinLength, setSuspensionPreloadLength, setWheelForward, setWheelUp, setWidth
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, 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
-
WheelSettingsTv
public WheelSettingsTv()Instantiate default settings.
-
-
Method Details
-
getRefCount
public int getRefCount()Count the active references to the nativeWheelSettingsTV
. The settings are unaffected.- Specified by:
getRefCount
in interfaceRefTarget
- Specified by:
getRefCount
in classWheelSettings
- Returns:
- the count (≥0)
-
setEmbedded
public void setEmbedded()Mark the nativeWheelSettingsTV
as embedded.- Specified by:
setEmbedded
in interfaceRefTarget
- Specified by:
setEmbedded
in classWheelSettings
-
toRef
Create a counted reference to the nativeWheelSettingsTV
.- Specified by:
toRef
in interfaceRefTarget
- Specified by:
toRef
in classWheelSettings
- Returns:
- a new JVM object with a new native object assigned
-