Megosztás a következőn keresztül:


AttachmentPoint Class

Definition

Implementation of the IAttachmentPoint interface. Provides implementations, as well as a binding to the update delegates.

public class AttachmentPoint : Microsoft.MixedReality.WorldLocking.Core.IAttachmentPoint
type AttachmentPoint = class
    interface IAttachmentPoint
Public Class AttachmentPoint
Implements IAttachmentPoint
Inheritance
AttachmentPoint
Implements

Constructors

AttachmentPoint(AdjustLocationDelegate, AdjustStateDelegate)

Constructor, sets handlers

Properties

AnchorId

Associated anchor id

CachedPosition

Internal history cache.

FragmentId

Associated fragment id

LocationFromAnchor

Position of attachment point in anchor point's space.

LocationHandler

Handler for system positional adjustments. May be null

Name

Name is auto-populated on create with something unique, but can be renamed to anything useful and convenient. It is only used as a label, so can be anything (including empty or null).

ObjectAdjustment

Cumulative transform adjustment for object(s) bound to this attachment point.

ObjectPosition

The position of object(s) bound to this attachment point.

State

Current state of this attachment point.

StateHandler

Handler for system connectivity adjustments. May be null.

Methods

HandlePoseAdjustment(Pose)

Keep track of cumulative transform adjustment, and pass on to client adjustment handler (if any).

HandleStateChange(AttachmentPointStateType)

If state has changed, record the new state and pass on to client handler (if any).

MoveTo(IAttachmentPointManager, Vector3)

Notify attachment point that it has moved incrementally to a new position.

Set(FragmentId, Vector3, AnchorId, Vector3)

Set internals of attachment point to new values.

TeleportTo(IAttachmentPointManager, Vector3, IAttachmentPoint)

Notify attachment point that it has teleported to a new position.

Applies to