Expand description
Panel-facing, stable-grab, logical/world conversion, and depth-drag geometry.
Structs§
- Open
XrPanel Facing Options - Facing policy and inclusive pitch bounds in radians.
- Open
XrPanel Grab State - Retained state that keeps a grabbed panel point stable while it reorients.
- Open
XrPanel Grab Update - Result of applying a stable-grab facing update.
- Panel
Depth Update - World grab point after optional controller-origin depth translation.
Enums§
- Open
XrPanel Facing Mode - Policy controlling whether panel orientation follows the viewer.
Constants§
- DEFAULT_
PANEL_ PITCH_ MAX_ RAD - Default maximum panel pitch, positive 45 degrees in radians.
- DEFAULT_
PANEL_ PITCH_ MIN_ RAD - Default minimum panel pitch, negative 45 degrees in radians.
Functions§
- apply_
facing_ stable_ grab - Applies the selected facing policy while preserving the grabbed world point.
- apply_
pointer_ depth_ delta - Projects pointer-origin movement onto the initial ray axis.
- apply_
yaw_ only_ stable_ grab - Reorients a dragged panel in yaw while preserving the grabbed world point.
- face_
user_ yaw_ only - Computes yaw-only orientation whose local positive Z faces the viewer.
- face_
user_ yaw_ pitch_ clamped - Computes viewer-facing yaw and pitch while keeping roll at zero.
- logical_
point_ to_ panel_ local - Maps a top-left-origin logical UI point into panel-local metres.
- panel_
local_ to_ world - Transforms a panel-local point into world space using the layer pose.
- rotate_
vec3 - Rotates a vector by an OpenXR quaternion.
- vec3_
from_ xr - Converts an OpenXR vector to the crate’s lightweight vector unchanged.
- xr_vec3
- Converts the crate’s lightweight vector to an OpenXR vector unchanged.