API Docs for: 2.0.0
Show:

TrackedObject Class

Extends ARObject
Module: ARGON

A TrackedObject acts as a container for content that is to be attached to a given Trackable/TrackingTarget. When attached to a TrackingTarget, the TrackedObject is centered on the Target.

Methods

add

(
  • inObject
)

Inherited from ARObject:

Adds an ARObject or THREE.Object3D as a child

Parameters:

  • inObject ARObject

    An instance of an ARObject or THREE.Object3D

setTarget

(
  • target
)

Attaches the TrackedObject to the TrackingTarget specified by 'target'

Parameters:

  • target TrackingTarget

    an instance of a TrackingTarget such as a VuforiaImageTarget

setTransform

(
  • inTransform
)

Inherited from ARObject:

Parameters:

  • inTransform Transform3D

    set the transform of this ARObject to inTransform

Properties

autoHide

Boolean

With this property set to true, the receiver and all of its children will be hidden when the associated TrackingTarget is not in view of the device's camera

Default: true

autoHideAfterFrames

Number

If autoHide is set to true, the TrackedObject and its descendents will be hidden after the specificed number of frames. Default is 1 frame.

Default: 1

trackingTarget

TrackingTarget

reference to the TrackingTarget to which the TrackedObject is attached. A TrackedObject can only be attached to a single TrackingTarget simultaneously.