Package com.github.stephengold.joltjni
Class WheeledVehicleControllerSettings
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.WheeledVehicleControllerSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
- Direct Known Subclasses:
MotorcycleControllerSettings
Settings used to construct a
WheeledVehicleController
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDifferential
(int index) Access the settings for the specified differential.Access the engine settings.int
Count how many differentials the vehicle will have.Access the transmission (gearbox) settings.void
setNumDifferentials
(int count) Alter the number of differentials.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
-
WheeledVehicleControllerSettings
public WheeledVehicleControllerSettings()Instantiate default settings.
-
-
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)
-