Class WheeledVehicleControllerSettings

All Implemented Interfaces:
ConstJoltPhysicsObject, RefTarget, AutoCloseable, Comparable<JoltPhysicsObject>
Direct Known Subclasses:
MotorcycleControllerSettings

public class WheeledVehicleControllerSettings extends VehicleControllerSettings
Settings used to construct a WheeledVehicleController.
  • Constructor Details

    • WheeledVehicleControllerSettings

      public WheeledVehicleControllerSettings()
      Instantiate default settings.
  • Method Details

    • getDifferential

      public VehicleDifferentialSettings getDifferential(int index)
      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

      public VehicleEngineSettings 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

      public VehicleTransmissionSettings 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)