Interface ConstVehicleAntiRollBar

All Superinterfaces:
Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
VehicleAntiRollBar

public interface ConstVehicleAntiRollBar extends ConstJoltPhysicsObject
Read-only access to a VehicleAntiRollBar object. (native type: const VehicleAntiRollBar)
  • Method Details

    • getLeftWheel

      int getLeftWheel()
      Identify the left wheel of the bar. The settings are unaffected.
      Returns:
      the wheel index
    • getRightWheel

      int getRightWheel()
      Identify the right wheel of the bar. The settings are unaffected.
      Returns:
      the wheel index
    • getStiffness

      float getStiffness()
      Return the stiffness of the bar. The settings are unaffected.
      Returns:
      the spring constant (in Newtons per meter) (0→disabled).
    • saveBinaryState

      void saveBinaryState(StreamOut stream)
      Save the bar to the specified binary stream. The settings are unaffected.
      Parameters:
      stream - the stream to write to (not null)