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,ConstTrackedVehicleControllerSettings,ConstVehicleControllerSettings,RefTarget,AutoCloseable,Comparable<JoltPhysicsObject>
public class TrackedVehicleControllerSettings
extends VehicleControllerSettings
implements ConstTrackedVehicleControllerSettings
Settings used to construct a
TrackedVehicleController.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate default settings.Instantiate a copy of the specified settings. -
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.voidCopy the argument to the current settings.Methods inherited from class com.github.stephengold.joltjni.VehicleControllerSettings
getRefCount, restoreBinaryState, saveBinaryState, setEmbedded, setVirtualAddressAsCoOwner, toRefMethods inherited from class com.github.stephengold.joltjni.SerializableObject
getRttiMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-
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
-
set
Copy the argument to the current settings.- Parameters:
source- the settings to copy (notnull, unaffected)
-
getEngine
Access the engine settings. (native field: mEngine)- Specified by:
getEnginein interfaceConstTrackedVehicleControllerSettings- Returns:
- a new JVM object with the pre-existing native object assigned
-
getNumTracks
public int getNumTracks()Count how many tracks the vehicle will have. The settings are unaffected. (native attribute: mTracks)- Specified by:
getNumTracksin interfaceConstTrackedVehicleControllerSettings- Returns:
- the count (2)
-
getTrack
Access the settings for the specified track. (native field: mTracks)- Specified by:
getTrackin interfaceConstTrackedVehicleControllerSettings- Parameters:
index- the index of the track to access (≥0, ≤1)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getTransmission
Access the transmission (gearbox) settings. (native attribute: mTransmission)- Specified by:
getTransmissionin interfaceConstTrackedVehicleControllerSettings- Returns:
- a new JVM object with the pre-existing native object assigned
-