Struct openxr::Space [−][src]
pub struct Space { /* fields omitted */ }
Implementations
Take ownership of an existing reference space handle
Safety
handle
must be a valid reference space handle associated with session
.
Take ownership of an existing action space handle
Safety
handle
must be a valid action space handle for action
and associated with session
.
Set the debug name of this Space
, if XR_EXT_debug_utils
is loaded
Determine the location of a space relative to a base space at a specified time, if currently known by the runtime.
Determine the location and velocity of a space relative to a base space at a specified time, if currently known by the runtime.
pub fn locate_hand_joints(
&self,
tracker: &HandTracker,
time: Time
) -> Result<Option<HandJointLocations>>
pub fn locate_hand_joints(
&self,
tracker: &HandTracker,
time: Time
) -> Result<Option<HandJointLocations>>
Determine the locations of the joints of a hand tracker relative to this space at a specified time, if currently known by the runtime.
XR_EXT_hand_tracking must be enabled.
pub fn relate_hand_joints(
&self,
tracker: &HandTracker,
time: Time
) -> Result<Option<(HandJointLocations, HandJointVelocities)>>
pub fn relate_hand_joints(
&self,
tracker: &HandTracker,
time: Time
) -> Result<Option<(HandJointLocations, HandJointVelocities)>>
Determine the locations and velocities of the joints of a hand tracker relative to this space at a specified time, if currently known by the runtime.
XR_EXT_hand_tracking must be enabled.