Interface ConstTrackedVehicleControllerSettings
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject,ConstSerializableObject,ConstVehicleControllerSettings
- All Known Implementing Classes:
TrackedVehicleControllerSettings
Read-only access to a
TrackedVehicleControllerSettings object.
(native type: const TrackedVehicleControllerSettings)-
Method Summary
Modifier and TypeMethodDescriptionAccess the engine settings.intCount how many tracks the vehicle will have.getTrack(int index) Access the settings for the specified track.Access the transmission (gearbox) settings.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVaMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRttiMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstVehicleControllerSettings
saveBinaryState
-
Method Details
-
getEngine
VehicleEngineSettings getEngine()Access the engine settings.- Returns:
- a new JVM object with the pre-existing native object assigned
-
getNumTracks
int getNumTracks()Count how many tracks the vehicle will have. The settings are unaffected.- Returns:
- the count (2)
-
getTrack
Access the settings for the specified track.- Parameters:
index- the index of the track to access (≥0, ≤1)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getTransmission
VehicleTransmissionSettings getTransmission()Access the transmission (gearbox) settings.- Returns:
- a new JVM object with the pre-existing native object assigned
-