Interface ConstVehicleEngineSettings

All Superinterfaces:
AutoCloseable, Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
VehicleEngine, VehicleEngineSettings

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

    • getAngularDamping

      float getAngularDamping()
      Return the angular damping factor. The settings are unaffected.
      Returns:
      the damping factor (per second)
    • getInertia

      float getInertia()
      Return the engine's rotational inertia. The settings are unaffected.
      Returns:
      the inertia (in kilogram.meter^2)
    • getMaxRpm

      float getMaxRpm()
      Return the maximum rotation rate. The settings are unaffected.
      Returns:
      the limit (in revolutions per minute)
    • getMaxTorque

      float getMaxTorque()
      Return the maximum torque. The settings are unaffected.
      Returns:
      the limit (in Newton meters)
    • getMinRpm

      float getMinRpm()
      Return the minimum rotation rate to avoid stalling. The settings are unaffected.
      Returns:
      the limit (in revolutions per minute)
    • getNormalizedTorque

      ConstLinearCurve getNormalizedTorque()
      Access the normalized torque as a function of normalized RPM.
      Returns:
      a new JVM object with the pre-existing native object assigned