Package com.github.stephengold.joltjni
Class WheeledVehicleControllerSettings
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.VehicleControllerSettings
com.github.stephengold.joltjni.WheeledVehicleControllerSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstSerializableObject,ConstVehicleControllerSettings,RefTarget,AutoCloseable,Comparable<JoltPhysicsObject>
- Direct Known Subclasses:
MotorcycleControllerSettings
Settings used to construct a
WheeledVehicleController.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate default settings.Instantiate a copy of the specified settings. -
Method Summary
Modifier and TypeMethodDescriptiongetDifferential(int index) Access the settings for the specified differential.Access the engine settings.intCount how many differentials the vehicle will have.Access the transmission (gearbox) settings.voidsetNumDifferentials(int count) Alter the number of differentials.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
getRtti
-
Constructor Details
-
WheeledVehicleControllerSettings
public WheeledVehicleControllerSettings()Instantiate default settings. -
WheeledVehicleControllerSettings
Instantiate a copy of the specified settings.- Parameters:
original- the settings to copy (notnull, unaffected)
-
-
Method Details
-
getDifferential
Access the settings for the specified differential. (native field: mDifferentials)- Parameters:
index- the index of the differential to access (≥0)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getEngine
Access the engine settings. (native field: mEngine)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getNumDifferentials
public int getNumDifferentials()Count how many differentials the vehicle will have. The settings are unaffected. (native attribute: mDifferentials)- Returns:
- the count (≥0)
-
getTransmission
Access the transmission (gearbox) settings. (native attribute: mTransmission)- Returns:
- a new JVM object with the pre-existing native object assigned
-
setNumDifferentials
public void setNumDifferentials(int count) Alter the number of differentials. (native attribute: mDifferentials)- Parameters:
count- the desired number (≥0, default=0)
-