RSX Code Reference
    Preparing search index...
    • rsx
    • VehicleAntiRollBarConfiguration

    Class VehicleAntiRollBarConfiguration

    Configuration for an anti roll bar of a vehicle. An anti-roll bar reduces the risk of a vehicle rolling over in sharp corners. It does so by connecting the suspensions of the wheels on an axle. In a sharp turn, part of the suspension force of the wheel on the inside of the turn is redirected to the wheel on the outside of the turn. This keeps the car more level through the turn.

    Index
    • get leftWheelIndex(): number

      Left wheel connected to the anti roll bar.

      Returns number

    • set leftWheelIndex(value: number): void

      Parameters

      • value: number

      Returns void

    • get rightWheelIndex(): number

      Right wheel connected to the anti roll bar.

      Returns number

    • set rightWheelIndex(value: number): void

      Parameters

      • value: number

      Returns void

    • get stiffness(): number

      Stiffness of the anti roll bar. Higher values increase the force the anti-roll bar transers. This means the car can stay level in sharper or faster turns. Values that are too large can make the simulation unstable. This value should be tuned according to the SuspensionStiffness of the wheels connected to this anti-roll bar. A good starting point for tuning this property is 0.1 * SuspensionStiffness of the connected wheels.

      Returns number

    • set stiffness(value: number): void

      Parameters

      • value: number

      Returns void