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

ISnapPoseDelegate Interface

Provides custom snap pose logic for handling tracked and snapped elements in the Interaction SDK.
This interface enables implementing classes to define precise snapping behavior for objects as they move between tracking and snapped states.
The snap pose delegate manages the lifecycle of tracked and snapped elements through distinct states:
  • Tracking: When an element is being actively followed but not yet snapped
  • Snapped: When an element has been locked to a specific pose
  • Movement: Handling pose updates for tracked elements See Oculus.Interaction.SurfaceSnapPoseDelegate and Oculus.Interaction.SequentialSlotsProvider for example implementations.

Member Functions

Begins tracking a new element at the specified pose.
This initiates the tracking state for an element before it potentially snaps to a final position. This method should be called when an element first becomes eligible for snapping, typically when it enters a snap zone or grab volume.
Parameters
id
Unique identifier for the element to track
pose
Initial pose of the element in world space
Stops tracking an element, removing it from the tracking system.
This should be called when an element is no longer eligible for snapping or needs to be released.
Parameters
id
Unique identifier of the element to stop tracking
Transitions an element from being tracked to being snapped at a specific pose.
This locks the element to the specified position and rotation. The snap pose may be different from the current tracked pose, allowing for smooth transitions to predefined positions.
Parameters
id
Unique identifier of the element to snap
pose
Target pose where the element should snap to
Releases an element from its snapped state.
This returns the element to a tracked state or releases it completely.
Parameters
id
Unique identifier of the element to unsnap
Updates the pose of a tracked element.
This should be called continuously while an element is being tracked to update its position and rotation.
Parameters
id
Unique identifier of the element to update
pose
New pose for the tracked element
Determines the target snap pose for a given element, if one exists.
This method is used to preview or validate potential snap positions before actually performing the snap operation.
Parameters
id
Unique identifier of the element to check
pose
Current pose of the element
result
The calculated snap pose if available
Returns
True if a valid snap pose exists for the element, false otherwise
Did you find this page helpful?