IAttachmentPoint.TeleportTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Notify attachment point that it has teleported to a new position.
public void TeleportTo (Microsoft.MixedReality.WorldLocking.Core.IAttachmentPointManager manager, UnityEngine.Vector3 newFrozenPosition, Microsoft.MixedReality.WorldLocking.Core.IAttachmentPoint context);
abstract member TeleportTo : Microsoft.MixedReality.WorldLocking.Core.IAttachmentPointManager * UnityEngine.Vector3 * Microsoft.MixedReality.WorldLocking.Core.IAttachmentPoint -> unit
Public Sub TeleportTo (manager As IAttachmentPointManager, newFrozenPosition As Vector3, context As IAttachmentPoint)
Parameters
- manager
- IAttachmentPointManager
The manager
- newFrozenPosition
- UnityEngine.Vector3
The new position
- context
- IAttachmentPoint
The context into which to teleport. Can be null. CreateAttachmentPoint(Vector3, IAttachmentPoint, AdjustLocationDelegate, AdjustStateDelegate)
Remarks
This should be used for discontinuous movement, i.e. teleporting. For continuous motion, use MoveTo(IAttachmentPointManager, Vector3). This is equivalent to TeleportAttachmentPoint(IAttachmentPoint, Vector3, IAttachmentPoint)