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

    Class VehicleDifferentialConfiguration

    Configuration for the differential in a vehicle. A differential connects two wheels that are on an axle to the transmission. To make a vehicle that can move by itself, at least on differential is necessary. The differential automatically splits the torque from the engine such that when going around a corner, neither wheel starts slipping.

    Index
    • get engineTorqueWeight(): number

      Engine torque is split between the different differentials according to these weights.

      Returns number

    • set engineTorqueWeight(value: number): void

      Parameters

      • value: number

      Returns void

    • get gearRatio(): number

      Gear ratio from the transmission to the wheels.

      Returns number

    • set gearRatio(value: number): void

      Parameters

      • value: number

      Returns void

    • get leftWheelIndex(): number

      Index of the left wheel this differential is connected to.

      Returns number

    • set leftWheelIndex(value: number): void

      Parameters

      • value: number

      Returns void

    • get rightWheelIndex(): number

      Index of the right wheel this differential is connected to.

      Returns number

    • set rightWheelIndex(value: number): void

      Parameters

      • value: number

      Returns void

    • get slipLimit(): number

      Maximum allowed wheel speed ratio between left and right wheels.

      Returns number

    • set slipLimit(value: number): void

      Parameters

      • value: number

      Returns void

    • get torqueSplit(): number

      Determines how the torque is split between the left and right wheel. 0 means all torque goes to the left wheel, 1 means all torque goes to the right wheel.

      Returns number

    • set torqueSplit(value: number): void

      Parameters

      • value: number

      Returns void