Origin Node
Debug model of a coordinate origin: three axis bars from the node's origin, X in red, Y in green and Z in blue, each 0.4 long and 0.05 thick (local units).
Not an AR object type, and nothing in the SDK creates it; add it under a node to visualize that node's origin and axes. The bars are built asynchronously as child nodes.
Note: the original description said it is shown according to a showDebugOrigin setting of ArBaseActivity; neither exists in this SDK. ArOriginNode is an identical duplicate of this class.
Author
Raymond Yang
Parameters
Context used to build the materials.
Properties
Functions
Returns whether the app holds permission (a Manifest.permission name); false when context is null.
Copies this node.
Returns the current tap listener.
Returns the current long-press listener.
Returns the current scale listener.
Returns the current scroll listener.
Called every frame while the node is enabled and in a scene, with the straight-line distance from the camera to the node in meters. Does nothing by default.
Feeds touches to the scale and gesture detectors, which call the scale, click, scroll and long-click listeners.
Called by Sceneform every frame. While the node is enabled, computes the distance to the camera (see onDistanceCalculated) and, if face-camera mode is on, turns the node about its Y axis toward the camera. Overrides should call super to keep both.
Removes the tap listener.
Removes the long-press listener.
Removes the scale listener.
Removes the scroll listener.
Turns face-camera (billboard) mode on or off.
Sets the listener called with this node when it is tapped (single tap up), on the main thread.
Sets the listener called with this node on a long press.
Sets the listener called on each step of a two-finger scale gesture on the node.
Sets the listener called while a finger scrolls (drags) on the node.