API reference
API reference
Select your platform
No SDKs available
No versions available

SurfaceSnapPoseDelegate Class

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

Protected Fields

Surface : ISurface
Signature
ISurface Oculus.Interaction.SurfaceSnapPoseDelegate.Surface

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.SurfaceSnapPoseDelegate.Awake()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.SurfaceSnapPoseDelegate.Start()
Returns
void

Methods

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