Package com.github.stephengold.joltjni
Class TrackedVehicleControllerSettings
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.VehicleControllerSettings
com.github.stephengold.joltjni.TrackedVehicleControllerSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstSerializableObject
,ConstVehicleControllerSettings
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
Settings used to construct a
TrackedVehicleController
.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate default settings.Instantiate a copy of the specified settings. -
Method Summary
Modifier and TypeMethodDescriptionint
Count how many tracks the vehicle will have.getTrack
(int index) Access the settings for the specified track.Methods inherited from class com.github.stephengold.joltjni.VehicleControllerSettings
getRefCount, restoreBinaryState, saveBinaryState, setEmbedded, toRef
Methods inherited from class com.github.stephengold.joltjni.SerializableObject
getRtti
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
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRtti
-
Constructor Details
-
TrackedVehicleControllerSettings
public TrackedVehicleControllerSettings()Instantiate default settings. -
TrackedVehicleControllerSettings
Instantiate a copy of the specified settings.- Parameters:
original
- the settings to copy (notnull
, unaffected)
-
-
Method Details
-
getNumTracks
public int getNumTracks()Count how many tracks the vehicle will have. The settings are unaffected. (native attribute: mTracks)- Returns:
- the count (≥0)
-
getTrack
Access the settings for the specified track. (native field: mTracks)- Parameters:
index
- the index of the track to access (≥0)- Returns:
- a new JVM object with the pre-existing native object assigned
-