Interface ConstVehicleTransmissionSettings

All Superinterfaces:
AutoCloseable, Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
VehicleTransmission, VehicleTransmissionSettings

public interface ConstVehicleTransmissionSettings extends ConstJoltPhysicsObject
Read-only access to a VehicleTransmissionSettings object. (native type: const VehicleTransmissionSettings)
  • Method Details

    • getClutchReleaseTime

      float getClutchReleaseTime()
      Return how long it takes to release the clutch in Auto mode. 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

      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 in Auto mode. The settings are unaffected.
      Returns:
      the threshold rate (in revolutions per minute)
    • getShiftUpRpm

      float getShiftUpRpm()
      Return the minimum engine RPMs for upshifting in Auto mode. The settings are unaffected.
      Returns:
      the threshold rate (in revolutions per minute)
    • getSwitchLatency

      float getSwitchLatency()
      Return the minimum time between shifts in Auto mode. The settings are unaffected.
      Returns:
      the latency (in seconds)
    • getSwitchTime

      float getSwitchTime()
      Return how long it takes to shift gears in Auto mode. The settings are unaffected.
      Returns:
      the latency (in seconds)
    • saveBinaryState

      void saveBinaryState(StreamOut stream)
      Save the settings to the specified binary stream. The settings are unaffected.
      Parameters:
      stream - the stream to write to (not null)