API reference

SurfaceSnapPoseDelegate Class

Extends MonoBehaviour, ISnapPoseDelegate
Uses a Surface to determine the closest pose to snap to.

Protected Fields

ISurface Surface[Get]

Protected Functions

virtual void Awake ( )
virtual void Start ( )

Member Functions

void TrackElement
( int id,
Pose p )
Indicates that a new element is tracking.
Parameters
id
The element id to track.
pose
The pose of the element.
void UntrackElement
( int id )
Indicates that an element is no longer being tracked.
Parameters
id
The element id to stop tracking.
void SnapElement
( int id,
Pose pose )
Indicates that the tracked element should snap.
Parameters
id
The element id to snap.
pose
The pose of the element.
void UnsnapElement
( int id )
Indicates that the element should no longer snap.
Parameters
id
The element id to stop snapping.
void MoveTrackedElement
( int id,
Pose p )
Indicates that a tracked element pose has updated.
Parameters
id
The element id.
pose
The new element pose.
bool SnapPoseForElement
( int id,
Pose pose,
out Pose result )
The target snap pose for a queried element id.
Parameters
id
The element id.
pose
The target pose.
Returns
True if the element has a pose to snap to.
void InjectAllSurfaceSnapPoseDelegate
( ISurface surface )
void InjectSurface
( ISurface surface )