Class WheelSettingsTv

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

public class WheelSettingsTv extends WheelSettings implements ConstWheelSettingsTv
Settings used to construct a WheelTv. (native type: WheelSettingsTV)
  • Constructor Details

    • WheelSettingsTv

      public WheelSettingsTv()
      Instantiate default settings.
    • WheelSettingsTv

      public WheelSettingsTv(ConstWheelSettingsTv original)
      Instantiate a copy of the specified settings.
      Parameters:
      original - the settings to copy (not null, unaffected)
  • Method Details

    • setLateralFriction

      public void setLateralFriction(float friction)
      Alter the wheel's friction in the sideways direction. (native attribute: mLateralFriction)
      Parameters:
      friction - the desired friction (default=2)
    • setLongitudinalFriction

      public void setLongitudinalFriction(float friction)
      Alter the wheel's friction in the forward direction. (native attribute: mLongitudinalFriction)
      Parameters:
      friction - the desired friction (default=4)
    • getLateralFriction

      public float getLateralFriction()
      Return the tire's friction in the sideways direction. The settings are unaffected. (native attribute: mLateralFriction)
      Specified by:
      getLateralFriction in interface ConstWheelSettingsTv
      Returns:
      the friction
    • getLongitudinalFriction

      public float getLongitudinalFriction()
      Return the tire's friction in the forward direction. The settings are unaffected. (native attribute: mLongitudinalFriction)
      Specified by:
      getLongitudinalFriction in interface ConstWheelSettingsTv
      Returns:
      the friction
    • getRefCount

      public int getRefCount()
      Count the active references to the native WheelSettingsTV. 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 WheelSettingsTV as embedded.
      Specified by:
      setEmbedded in interface RefTarget
      Specified by:
      setEmbedded in class WheelSettings
    • toRef

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