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.

Hierarchy

  • FrameworkObject
    • VehicleSuspensionPartConfiguration

Constructors

Accessors

  • get attachmentPoint(): Immutable<Vector3>
  • Only used when in the VehicleSuspensionPartMode::Suspension mode. Defines where the suspension part is attached to the wheel.

    Returns Immutable<Vector3>

  • set attachmentPoint(value): void
  • Parameters

    Returns void

  • 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): void
  • Parameters

    Returns void

  • get wheelIndex(): number
  • Wheel this part is attached to.

    Returns number

  • set wheelIndex(value): void
  • Parameters

    • value: number

    Returns void

Methods

  • 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