Interface ConstWheeledVehicleControllerSettings
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject,ConstSerializableObject,ConstVehicleControllerSettings
- All Known Subinterfaces:
ConstMotorcycleControllerSettings
- All Known Implementing Classes:
MotorcycleControllerSettings,WheeledVehicleControllerSettings
Read-only access to a
WheeledVehicleControllerSettings object.
(native type: const WheeledVehicleControllerSettings)-
Method Summary
Modifier and TypeMethodDescriptiongetDifferential(int index) Access the settings for the specified differential.floatReturn the ratio of the max/min average wheel speed for each differential.Access the engine settings.intCount how many differentials the vehicle will have.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
-
getDifferential
Access the settings for the specified differential.- Parameters:
index- the index of the differential to access (≥0)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getDifferentialLimitedSlipRatio
float getDifferentialLimitedSlipRatio()Return the ratio of the max/min average wheel speed for each differential. The settings are unaffected.- Returns:
- the ratio
-
getEngine
VehicleEngineSettings getEngine()Access the engine settings.- Returns:
- a new JVM object with the pre-existing native object assigned
-
getNumDifferentials
int getNumDifferentials()Count how many differentials the vehicle will have. The settings are unaffected.- Returns:
- the count (≥0)
-
getTransmission
VehicleTransmissionSettings getTransmission()Access the transmission (gearbox) settings.- Returns:
- a new JVM object with the pre-existing native object assigned
-