anchor

var anchor: Anchor

The node world positioned anchor

Describes a fixed location and orientation in the real world. To stay at a fixed location in physical space, the numerical description of this position will update as ARCore's understanding of the space improves.

The nose uses Anchor.getPose to get the current numerical location of this anchor. This location may change any time Session.update is called, but will never spontaneously change.

mathematically: point_world = anchor.getPose().transformPoint(point_local);} point_world = anchor.getPose().toMatrix() * point_local;

Anchors are hashable and may for example be used as keys in Map.

Anchors incur ongoing processing overhead within ARCore. To release unneeded anchors use destroy.