Share via


IAttachmentPointManager.TeleportAttachmentPoint Method

Definition

Teleport (as opposed to Move) means that the object is meant to have disappeared at its old position and instantaneously reappeared at its new position in frozen space without traversing the space in between.

public void TeleportAttachmentPoint (Microsoft.MixedReality.WorldLocking.Core.IAttachmentPoint attachPointIface, UnityEngine.Vector3 newFrozenPosition, Microsoft.MixedReality.WorldLocking.Core.IAttachmentPoint context);
abstract member TeleportAttachmentPoint : Microsoft.MixedReality.WorldLocking.Core.IAttachmentPoint * UnityEngine.Vector3 * Microsoft.MixedReality.WorldLocking.Core.IAttachmentPoint -> unit
Public Sub TeleportAttachmentPoint (attachPointIface As IAttachmentPoint, newFrozenPosition As Vector3, context As IAttachmentPoint)

Parameters

attachPointIface
IAttachmentPoint

The attachment point to teleport

newFrozenPosition
UnityEngine.Vector3

The position to teleport to.

context
IAttachmentPoint

The optional context.

Remarks

Use this for discontinuous movement through space (i.e. teleportation). For continuous movement, use MoveAttachmentPoint(IAttachmentPoint, Vector3). This is equivalent to releasing the attachment point (ReleaseAttachmentPoint(IAttachmentPoint)) and creating it (CreateAttachmentPoint(Vector3, IAttachmentPoint, AdjustLocationDelegate, AdjustStateDelegate)) at the new location in the given context, except that using Teleport allows the reference to the existing attachment point to remains valid.

Applies to