Class VehicleInteractiveGizmo

The VehicleInteractiveGizmo implements a BuiltInInteractiveGizmo for the Vehicle component.

Hierarchy (view full)

Constructors

Properties

_isDragActive: boolean
_position: Vector3
_worldAxes: Matrix3

Accessors

  • get delta(): number
  • The delta of the current drag operation.

    Returns number

  • get isDragging(): boolean
  • Determines if the gizmo currently being interacted with (clicking, or dragging).

    Returns boolean

  • get isEnabled(): boolean
  • Determines the active state of the gizmo. If disabled, the gizmo will not render or receive input.

    Returns boolean

  • get isHovering(): boolean
  • Determines if the gizmo currently being hovered.

    Returns boolean

  • get worldAxes(): Matrix3
  • World axes of the gizmo. Columns are the world-space local X, Y, Z directions.

    Returns Matrix3

  • set worldAxes(value): void
  • Parameters

    Returns void

  • get worldPosition(): Vector3
  • World position of the gizmo.

    Returns Vector3

  • set worldPosition(value): void
  • Parameters

    Returns void

  • get worldRotation(): Quaternion
  • World rotation of the gizmo.

    Returns Quaternion

  • set worldRotation(value): void
  • Parameters

    Returns void

Methods

  • Virtual

    Called every frame after handle input is processed. Active handle sliders should contain values signals if and how much they were dragged.

    Parameters

    Returns void

    Implementing classes must call super

Events

onSelectionChanged: Event<[VehiclePartConfiguration[]], void>

Event that is invoked when vehicle parts are selected or deselected via the gizmo.

onDragStart: Event<any[], void>

Invoked when a drag is started and a new delta is available.

The onDrag event is invoked right after this event. Do not integrate the current delta during this event.

onDrag: Event<any[], void>

Invoked when a drag is performed and a new delta is available.

onDragFinished: Event<any[], void>

Invoked when the drag finished.