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

SurfaceSnapPoseDelegate Class

Uses a Surface to determine the closest pose to snap to.
Oculus::Interaction::SurfaceSnapPoseDelegate extends MonoBehaviour.
Oculus::Interaction::SurfaceSnapPoseDelegate extends Oculus.Interaction.ISnapPoseDelegate.

Overview

Object Data

Object Data

void
Awake ( )
void
Start ( )

Public Member Functions

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

Details

Object Data

ISurface Oculus.Interaction.SurfaceSnapPoseDelegate.Surface
No description available.

Object Data

virtual void Oculus.Interaction.SurfaceSnapPoseDelegate.Awake ( )
No description available.
virtual void Oculus.Interaction.SurfaceSnapPoseDelegate.Start ( )
No description available.

Member Functions

void Oculus.Interaction.SurfaceSnapPoseDelegate.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 Oculus.Interaction.SurfaceSnapPoseDelegate.UntrackElement
( int id )
Indicates that an element is no longer being tracked.
Parameters
id
The element id to stop tracking.
void Oculus.Interaction.SurfaceSnapPoseDelegate.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 Oculus.Interaction.SurfaceSnapPoseDelegate.UnsnapElement
( int id )
Indicates that the element should no longer snap.
Parameters
id
The element id to stop snapping.
void Oculus.Interaction.SurfaceSnapPoseDelegate.MoveTrackedElement
( int id,
Pose p )
Indicates that a tracked element pose has updated.
Parameters
id
The element id.
pose
The new element pose.
bool Oculus.Interaction.SurfaceSnapPoseDelegate.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 Oculus.Interaction.SurfaceSnapPoseDelegate.InjectAllSurfaceSnapPoseDelegate
( ISurface surface )
No description available.
void Oculus.Interaction.SurfaceSnapPoseDelegate.InjectSurface
( ISurface surface )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon