Interface ConstVehicleConstraintSettings

All Superinterfaces:
Comparable<JoltPhysicsObject>, ConstConstraintSettings, ConstJoltPhysicsObject, ConstSerializableObject
All Known Implementing Classes:
VehicleConstraintSettings

public interface ConstVehicleConstraintSettings extends ConstConstraintSettings
Read-only access to a VehicleConstraintSettings object. (native type: const VehicleConstraintSettings)
  • Method Details

    • getAntiRollBar

      ConstVehicleAntiRollBar getAntiRollBar(int barIndex)
      Access the settings for the specified anti-roll bar. The settings are unaffected.
      Parameters:
      barIndex - the index of the anti-roll bar to access (≥0, <numBars)
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getController

      Access the controller settings. The constraint settings are unaffected.
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getForward

      Vec3 getForward()
      Copy the "forward" vector. The settings are unaffected.
      Returns:
      a new direction vector
    • getMaxPitchRollAngle

      float getMaxPitchRollAngle()
      Return the vehicle's maximum pitch/roll angle. The settings are unaffected.
      Returns:
      the limit angle (in radians)
    • getNumAntiRollBars

      int getNumAntiRollBars()
      Count the anti-roll bars. The settings are unaffected.
      Returns:
      the count (≥0)
    • getNumWheels

      int getNumWheels()
      Count the wheels. The settings are unaffected.
      Returns:
      the count (≥0)
    • getUp

      Vec3 getUp()
      Copy the "up" vector. The settings are unaffected.
      Returns:
      a new direction vector
    • getWheel

      ConstWheelSettings getWheel(int wheelIndex)
      Access the settings of the specified wheel.
      Parameters:
      wheelIndex - which wheel (≥0, <numWheels)
      Returns:
      the pre-existing object
    • getWheels

      ConstWheelSettings[] getWheels()
      Enumerate all wheel settings. The settings are unaffected.
      Returns:
      a new array of pre-existing objects