Options
All
  • Public
  • Public/Protected
  • All
Menu

Attaches content to a point on a surface in front of the user as it moves around in the camera view.

see

https://docs.zap.works/universal-ar/web-libraries/babylonjs/instant-world-tracking/

Hierarchy

  • InstantWorldTracker
    • InstantWorldTracker

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

anchor

anchor: InstantWorldAnchor

The instant world tracking anchor.

Accessors

enabled

  • get enabled(): boolean
  • set enabled(e: boolean): void
  • Gets/sets the enabled state of the instant world tracker. Disable when not in use to save computational resources during frame processing.

    Returns boolean

  • Gets/sets the enabled state of the instant world tracker. Disable when not in use to save computational resources during frame processing.

    Parameters

    • e: boolean

    Returns void

Methods

destroy

  • destroy(): void
  • Destroys the instant tracker.

    Returns void

setAnchorPoseFromCameraOffset

  • setAnchorPoseFromCameraOffset(x: number, y: number, z: number, orientation?: instant_world_tracker_transform_orientation_t): void
  • Sets the point in the user's environment that the anchor tracks from.

    The parameters passed in to this function correspond to the X, Y and Z coordinates (in camera space) of the point to track. Choosing a position with X and Y coordinates of zero, and a negative Z coordinate, will select a point on a surface directly in front of the center of the screen.

    Parameters

    • x: number
    • y: number
    • z: number
    • Optional orientation: instant_world_tracker_transform_orientation_t

      The orientation of the point in space.

    Returns void

Legend

  • Constructor
  • Property
  • Method

Generated using TypeDoc