pub struct Space { /* private fields */ }
Implementations§
source§impl Space
impl Space
sourcepub unsafe fn reference_from_raw<G>(session: Session<G>, handle: Space) -> Self
pub unsafe fn reference_from_raw<G>(session: Session<G>, handle: Space) -> Self
Take ownership of an existing reference space handle
§Safety
handle
must be a valid reference space handle associated with session
.
sourcepub unsafe fn action_from_raw<G>(
action: Action<Posef>,
session: Session<G>,
handle: Space
) -> Self
pub unsafe fn action_from_raw<G>( action: Action<Posef>, session: Session<G>, handle: Space ) -> Self
Take ownership of an existing action space handle
§Safety
handle
must be a valid action space handle for action
and associated with session
.
sourcepub fn set_name(&mut self, name: &str) -> Result<()>
pub fn set_name(&mut self, name: &str) -> Result<()>
Set the debug name of this Space
, if XR_EXT_debug_utils
is loaded
sourcepub fn locate(&self, base: &Space, time: Time) -> Result<SpaceLocation>
pub fn locate(&self, base: &Space, time: Time) -> Result<SpaceLocation>
Determine the location of a space relative to a base space at a specified time, if currently known by the runtime.
sourcepub fn relate(
&self,
base: &Space,
time: Time
) -> Result<(SpaceLocation, SpaceVelocity)>
pub fn relate( &self, base: &Space, time: Time ) -> Result<(SpaceLocation, SpaceVelocity)>
Determine the location and velocity of a space relative to a base space at a specified time, if currently known by the runtime.
sourcepub 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.
sourcepub 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.