Interface ConstVehicleTransmissionSettings
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
VehicleTransmission,VehicleTransmissionSettings
Read-only access to a
VehicleTransmissionSettings object. (native
type: const VehicleTransmissionSettings)-
Method Summary
Modifier and TypeMethodDescriptionfloatReturn how long it takes to release the clutch inAutomode.floatReturn the total torque applied by the clutch when fully engaged.float[]Return the number of engine rotations per gearbox rotation for each forward gear.getMode()Return the type of transmission.float[]Return the number of engine rotations per gearbox rotation for each reverse gear.floatReturn the maximum engine RPMs for downshifting inAutomode.floatReturn the minimum engine RPMs for upshifting inAutomode.floatReturn the minimum time between shifts inAutomode.floatReturn how long it takes to shift gears inAutomode.voidsaveBinaryState(StreamOut stream) Save the settings to the specified binary stream.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getClutchReleaseTime
float getClutchReleaseTime()Return how long it takes to release the clutch inAutomode. The settings are unaffected.- Returns:
- the latency (in seconds)
-
getClutchStrength
float getClutchStrength()Return the total torque applied by the clutch when fully engaged. The settings are unaffected.- Returns:
- the strength
-
getGearRatios
float[] getGearRatios()Return the number of engine rotations per gearbox rotation for each forward gear. The first element is for 1st gear. The settings are unaffected.- Returns:
- a new array
-
getMode
ETransmissionMode getMode()Return the type of transmission. The settings are unaffected.- Returns:
- an enum value (not null)
-
getReverseGearRatios
float[] getReverseGearRatios()Return the number of engine rotations per gearbox rotation for each reverse gear. The settings are unaffected.- Returns:
- a new array
-
getShiftDownRpm
float getShiftDownRpm()Return the maximum engine RPMs for downshifting inAutomode. The settings are unaffected.- Returns:
- the threshold rate (in revolutions per minute)
-
getShiftUpRpm
float getShiftUpRpm()Return the minimum engine RPMs for upshifting inAutomode. The settings are unaffected.- Returns:
- the threshold rate (in revolutions per minute)
-
getSwitchLatency
float getSwitchLatency()Return the minimum time between shifts inAutomode. The settings are unaffected.- Returns:
- the latency (in seconds)
-
getSwitchTime
float getSwitchTime()Return how long it takes to shift gears inAutomode. The settings are unaffected.- Returns:
- the latency (in seconds)
-
saveBinaryState
Save the settings to the specified binary stream. The settings are unaffected.- Parameters:
stream- the stream to write to (notnull)
-