pub struct XrHand {
pub flags: u8,
pub joints: [Pose; 21],
pub tips: [f32; 5],
pub tips_active: u8,
pub aim_pose: Pose,
pub pinch: [u8; 4],
}
Fields§
§flags: u8
§joints: [Pose; 21]
§tips: [f32; 5]
§tips_active: u8
§aim_pose: Pose
§pinch: [u8; 4]
Implementations§
Source§impl XrHand
impl XrHand
pub const IN_VIEW: u8 = 1u8
pub const AIM_VALID: u8 = 2u8
pub const PINCH_INDEX: u8 = 4u8
pub const PINCH_MIDDLE: u8 = 8u8
pub const PINCH_RING: u8 = 16u8
pub const PINCH_LITTLE: u8 = 32u8
pub const DOMINANT_HAND: u8 = 64u8
pub const MENU_PRESSED: u8 = 128u8
pub const PINCH_STRENGTH_INDEX: usize = 0usize
pub const PINCH_STRENGTH_MIDDLE: usize = 1usize
pub const PINCH_STRENGTH_RING: usize = 2usize
pub const PINCH_STRENGTH_LITTLE: usize = 3usize
pub const JOINT_COUNT: usize = 21usize
pub const CENTER: usize = 0usize
pub const WRIST: usize = 1usize
pub const THUMB_BASE: usize = 2usize
pub const THUMB_KNUCKLE1: usize = 3usize
pub const THUMB_KNUCKLE2: usize = 4usize
pub const INDEX_BASE: usize = 5usize
pub const INDEX_KNUCKLE1: usize = 6usize
pub const INDEX_KNUCKLE2: usize = 7usize
pub const INDEX_KNUCKLE3: usize = 8usize
pub const MIDDLE_BASE: usize = 9usize
pub const MIDDLE_KNUCKLE1: usize = 10usize
pub const MIDDLE_KNUCKLE2: usize = 11usize
pub const MIDDLE_KNUCKLE3: usize = 12usize
pub const RING_BASE: usize = 13usize
pub const RING_KNUCKLE1: usize = 14usize
pub const RING_KNUCKLE2: usize = 15usize
pub const RING_KNUCKLE3: usize = 16usize
pub const LITTLE_BASE: usize = 17usize
pub const LITTLE_KNUCKLE1: usize = 18usize
pub const LITTLE_KNUCKLE2: usize = 19usize
pub const LITTLE_KNUCKLE3: usize = 20usize
pub const END_KNUCKLES: [usize; 5]
pub const THUMB_TIP: usize = 0usize
pub const INDEX_TIP: usize = 1usize
pub const MIDDLE_TIP: usize = 2usize
pub const RING_TIP: usize = 3usize
pub const LITTLE_TIP: usize = 4usize
pub fn in_view(&self) -> bool
pub fn aim_valid(&self) -> bool
pub fn dominant_hand(&self) -> bool
pub fn pinch_index(&self) -> bool
pub fn pinch_middle(&self) -> bool
pub fn pinch_ring(&self) -> bool
pub fn pinch_little(&self) -> bool
pub fn pinch_only_little(&self) -> bool
pub fn pinch_only_index(&self) -> bool
pub fn pinch_not_index(&self) -> bool
pub fn pinch_strength_index(&self) -> f32
pub fn pinch_strength_middle(&self) -> f32
pub fn pinch_strength_ring(&self) -> f32
pub fn pinch_strength_pinky(&self) -> f32
pub fn end_knuckles(&self) -> [&Pose; 5]
pub fn tip_active(&self, tip: usize) -> bool
pub fn tip_pos_thumb(&self) -> Vec3
pub fn tip_pos_index(&self) -> Vec3
pub fn tip_pos_middle(&self) -> Vec3
pub fn tip_pos_ring(&self) -> Vec3
pub fn tip_pos_little(&self) -> Vec3
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XrHand
impl RefUnwindSafe for XrHand
impl Send for XrHand
impl Sync for XrHand
impl Unpin for XrHand
impl UnwindSafe for XrHand
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more