Class TrackedVehicleController

All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public class TrackedVehicleController extends VehicleController
Control the acceleration and deceleration of a vehicle with tracks.
  • Method Details

    • getEngine

      public VehicleEngine getEngine()
      Access the vehicle's engine.
      Returns:
      a new JVM object with the pre-existing native object assigned
    • setDriverInput

      public void setDriverInput(float forward, float leftRatio, float rightRatio, float brake)
      Update the control inputs from the vehicle's driver.
      Parameters:
      forward - the desired driving direction and amount of acceleration (≥-1, ≤1)
      leftRatio - the left-track rotation-rate ratio (≥-1, ≤1)
      rightRatio - the right-track rotation-rate ratio (≥-1, ≤1)
      brake - the desired brake pressure (≥0, ≤1)
    • setRpmMeter

      public void setRpmMeter(Vec3Arg location, float size)
      Configure debug rendering of the RPM meter.
      Parameters:
      location - the desired location of the meter (not null, unaffected)
      size - the desired size of the meter