Interface ConstWheelSettings

All Superinterfaces:
Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
WheelSettings, WheelSettingsTv, WheelSettingsWv

public interface ConstWheelSettings extends ConstJoltPhysicsObject
Read-only access to WheelSettings. (native type: const WheelSettings)
  • Method Details

    • getEnableSuspensionForcePoint

      boolean getEnableSuspensionForcePoint()
      Determine where to apply tire forces. The settings are unaffected.
      Returns:
      true if applied at the configured suspension-force point, false if applied at the wheel's point of contact
    • getPosition

      Vec3 getPosition()
      Copy the location of the attachment point. The settings are unaffected.
      Returns:
      a new location vector (in the body's local system)
    • getRadius

      float getRadius()
      Return the radius of the wheel. The settings are unaffected.
      Returns:
      the radius (in meters)
    • getSteeringAxis

      Vec3 getSteeringAxis()
      Copy the steering axis (upward direction). The settings are unaffected.
      Returns:
      a new direction vector
    • getSuspensionDirection

      Vec3 getSuspensionDirection()
      Copy the downward direction of the suspension. The settings are unaffected.
      Returns:
      a new direction vector
    • getSuspensionForcePoint

      Vec3 getSuspensionForcePoint()
      Copy the location where (if enabled) tire forces will be applied. The settings are unaffected.
      Returns:
      a new location vector (in body coordinates)
    • getSuspensionMaxLength

      float getSuspensionMaxLength()
      Return the maximum displacement from the attachment point. The settings are unaffected.
      Returns:
      the distance (in meters)
    • getSuspensionMinLength

      float getSuspensionMinLength()
      Return the minimum displacement from the attachment point. The settings are unaffected.
      Returns:
      the distance (in meters)
    • getSuspensionPreloadLength

      float getSuspensionPreloadLength()
      Return the suspension preload length. The settings are unaffected.
      Returns:
      the offset (in meters)
    • getWheelForward

      Vec3 getWheelForward()
      Copy the forward direction when steering is neutral. The settings are unaffected.
      Returns:
      a new direction vector
    • getWheelUp

      Vec3 getWheelUp()
      Copy the "up" direction when steering is neutral. The settings are unaffected.
      Returns:
      a new direction vector
    • getWidth

      float getWidth()
      Return the width of the wheel. The settings are unaffected.
      Returns:
      the width (in meters)