Class WheelSettings

All Implemented Interfaces:
ConstJoltPhysicsObject, ConstWheelSettings, AutoCloseable, Comparable<ConstJoltPhysicsObject>
Direct Known Subclasses:
WheelSettingsWv

public abstract class WheelSettings extends SerializableObject implements ConstWheelSettings
Settings used to construct a Wheel.
  • Method Details

    • setPosition

      public void setPosition(Vec3Arg position)
      Alter the location of the attachment point. (native attribute: mPosition)
      Parameters:
      position - the location of the attachment point (in the body's local system, not null, unaffected, default=(0,0,0))
    • setRadius

      public void setRadius(float radius)
      Alter the radius of the wheel. (native attribute: mRadius)
      Parameters:
      radius - the desired radius (in meters, default=0.3)
    • setWidth

      public void setWidth(float width)
      Alter the width of the wheel. (native attribute: mWidth)
      Parameters:
      width - the desired width (in meters, default=0.1)
    • toRef

      public abstract Ref toRef()
      Create a counted reference to the native WheelSettings.
      Returns:
      a new JVM object with a new native object assigned
    • getPosition

      public Vec3 getPosition()
      Copy the location of the attachment point. The settings are unaffected. (native attribute: mPosition)
      Specified by:
      getPosition in interface ConstWheelSettings
      Returns:
      a new location vector (in the body's local system)
    • getRadius

      public float getRadius()
      Return the radius of the wheel. The settings are unaffected. (native attribute: mRadius)
      Specified by:
      getRadius in interface ConstWheelSettings
      Returns:
      the radius (in maters)
    • getWidth

      public float getWidth()
      Return the width of the wheel. The settings are unaffected. (native attribute: mWidth)
      Specified by:
      getWidth in interface ConstWheelSettings
      Returns:
      the width (in maters)