/// <summary> /// When the reference point position is initially set, create an attachment point if there isn't one, /// or if there is, updated its position. /// </summary> private void CheckAttachmentPoint() { IAttachmentPointManager mgr = manager.AttachmentPointManager; if (attachmentPoint == null) { attachmentPoint = mgr.CreateAttachmentPoint(LockedPose.position, null, OnLocationUpdate, null); } else { mgr.TeleportAttachmentPoint(attachmentPoint, LockedPose.position, null); } }
/// <inheritdoc /> public void TeleportTo(IAttachmentPointManager manager, Vector3 newFrozenPosition, IAttachmentPoint parent) { manager.TeleportAttachmentPoint(this, newFrozenPosition, parent); }