• Preparing search index...
  • The search index is not available
@xeokit/sdk - v0.1.0
  • @xeokit/sdk
  • presentations
  • cameraTour
  • playCameraTour

Function playCameraTour

  • playCameraTour(
        view: View,
        tour: CameraTour,
        options?: PlayCameraTourOptions,
    ): SDKResult<CameraTourPlayback>

    Drive a View's Camera through a CameraTour's waypoints.

    Snaps the camera to tour.waypoints[startWaypointIndex] immediately, then begins the dwell → transit cycle. The first onWaypointEnter callback fires synchronously on the success path so the host can sync HUDs / narration overlays before the first tick.

    Returns an SDKResult wrapping the CameraTourPlayback handle — never throws, matching the SDK's result-monad convention. On invalid input (empty tour, destroyed view), returns {ok: false, type: SDKErrorType.InvalidInput, error: "…"}.

    Parameters

    • view: View
    • tour: CameraTour
    • options: PlayCameraTourOptions = {}

    Returns SDKResult<CameraTourPlayback>

    • Defined in packages/sdk/src/presentations/cameraTour/play/playCameraTour.ts:47

Settings

Member Visibility
@xeokit/sdk - v0.1.0
  • Loading...

Generated using TypeDoc