ARFixObjectToAnchor

Description

Attaches an object to an anchor in the same way that FixObjectToObject works. The object's position and rotation will be added to the anchor's position and rotation. So for example an object at position 0,0,0 would be directly on top of the anchor's position, whereas if the object had a position of 0,2,0 then the object would be placed 2 meters above the anchor's position. There is no limit on the number of objects that can be attached to an anchor, and objects can still be attached to the object attached to the anchor. For example object 1 could be fixed to the anchor, and object 2 could be fixed to object 1. To remove an object from an anchor call this command with an anchor ID of 0. The object will then be placed in the world at its given position, for example a position of 0,0,0 would place it at the origin of the world.

Definition

ARFixObjectToAnchor( objID, anchorID )

Parameters