Package com.github.stephengold.joltjni
Class TrackedVehicleControllerSettings
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.VehicleControllerSettings
com.github.stephengold.joltjni.TrackedVehicleControllerSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
Settings used to construct a
TrackedVehicleController
.-
Constructor Summary
Constructors -
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, setEmbedded, toRef
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
TrackedVehicleControllerSettings
public TrackedVehicleControllerSettings()Instantiate default settings.
-
-
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
-