Class WheelSettingsWv

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

public class WheelSettingsWv extends WheelSettings
Settings used to construct a WheelWv. (native type: WheelSettingsWV)
  • Constructor Details

    • WheelSettingsWv

      public WheelSettingsWv()
      Instantiate default settings.
  • Method Details

    • getMaxBrakeTorque

      public float getMaxBrakeTorque()
      Return the maximum torque that the main brake can exert on the wheel. The settings are unaffected. (native attribute: mMaxBrakeTorque)
      Returns:
      the maximum torque (in Newton.meters)
    • getMaxHandBrakeTorque

      public float getMaxHandBrakeTorque()
      Return the maximum torque that the hand brake can exert on the wheel. The settings are unaffected. (native attribute: mMaxHandBrakeTorque)
      Returns:
      the maximum torque (in Newton.meters)
    • getMaxSteerAngle

      public float getMaxSteerAngle()
      Return the maximum steering angle. The settings are unaffected. (native attribute: mMaxSteerAngle)
      Returns:
      the maximum steering angle (in radians)
    • setMaxBrakeTorque

      public void setMaxBrakeTorque(float torque)
      Alter the maximum torque that the main brake can exert on the wheel. (native attribute: mMaxBrakeTorque)
      Parameters:
      torque - the desired torque (in Newton.meters, default=1500)
    • setMaxHandBrakeTorque

      public void setMaxHandBrakeTorque(float torque)
      Alter the maximum torque that the hand brake can exert on the wheel. (native attribute: mMaxHandBrakeTorque)
      Parameters:
      torque - the desired torque (in Newton.meters, default=4000)
    • setMaxSteerAngle

      public void setMaxSteerAngle(float angle)
      Alter the maximum steering angle. (native attribute: mMaxSteerAngle)
      Parameters:
      angle - the desired maximum steering angle (in radians, default=7*Pi/18)
    • getRefCount

      public int getRefCount()
      Count the active references to the native WheelSettingsWv. The settings are unaffected.
      Specified by:
      getRefCount in interface RefTarget
      Specified by:
      getRefCount in class WheelSettings
      Returns:
      the count (≥0)
    • setEmbedded

      public void setEmbedded()
      Mark the native WheelSettingsWv as embedded.
      Specified by:
      setEmbedded in interface RefTarget
      Specified by:
      setEmbedded in class WheelSettings
    • toRef

      public WheelSettingsWvRef toRef()
      Create a counted reference to the native WheelSettingsWv.
      Specified by:
      toRef in interface RefTarget
      Specified by:
      toRef in class WheelSettings
      Returns:
      a new JVM object with a new native object assigned