TrackedObject Class
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.
Item Index
Methods
Properties
Methods
add
-
inObject
Adds an ARObject or THREE.Object3D as a child
Parameters:
-
inObject
ARObjectAn instance of an ARObject or THREE.Object3D
setTarget
-
target
Attaches the TrackedObject to the TrackingTarget specified by 'target'
Parameters:
-
target
TrackingTargetan instance of a TrackingTarget such as a VuforiaImageTarget
setTransform
-
inTransform
Parameters:
-
inTransform
Transform3Dset 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.