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

    Class VehicleSuspensionPartConfiguration

    Configuration for an animated suspension part. This can be used to animate suspension springs and suspension arms that the wheels are attached to.

    Index
    • get baseTransform(): Immutable<Transform>

      For parts that are using the VehicleSuspensionPartMode::Suspension mode, this defines the transform relative to the vehicle body where the part is attached. For parts that are using the VehicleSuspensionPartMode::BrakeAssembly mode, this defines the transform relative to the wheel where the part is attached.

      Returns Immutable<Transform>

    • set baseTransform(value: Immutable<Transform>): void

      Parameters

      Returns void

    • get wheelIndex(): number

      Wheel this part is attached to.

      Returns number

    • set wheelIndex(value: number): void

      Parameters

      • value: number

      Returns void

    • Copies relevant properties from other to this suspension part.

      Parameters

      • other: VehicleSuspensionPartConfiguration

        The other suspension part to copy the properties from.

      • isMirrored: boolean

        Whether other is on the opposite side of the vehicle and vectors need to be flipped.

      Returns void