Struct XrHand

Source
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

Source

pub const IN_VIEW: u8 = 1u8

Source

pub const AIM_VALID: u8 = 2u8

Source

pub const PINCH_INDEX: u8 = 4u8

Source

pub const PINCH_MIDDLE: u8 = 8u8

Source

pub const PINCH_RING: u8 = 16u8

Source

pub const PINCH_LITTLE: u8 = 32u8

Source

pub const DOMINANT_HAND: u8 = 64u8

Source

pub const MENU_PRESSED: u8 = 128u8

Source

pub const PINCH_STRENGTH_INDEX: usize = 0usize

Source

pub const PINCH_STRENGTH_MIDDLE: usize = 1usize

Source

pub const PINCH_STRENGTH_RING: usize = 2usize

Source

pub const PINCH_STRENGTH_LITTLE: usize = 3usize

Source

pub const JOINT_COUNT: usize = 21usize

Source

pub const CENTER: usize = 0usize

Source

pub const WRIST: usize = 1usize

Source

pub const THUMB_BASE: usize = 2usize

Source

pub const THUMB_KNUCKLE1: usize = 3usize

Source

pub const THUMB_KNUCKLE2: usize = 4usize

Source

pub const INDEX_BASE: usize = 5usize

Source

pub const INDEX_KNUCKLE1: usize = 6usize

Source

pub const INDEX_KNUCKLE2: usize = 7usize

Source

pub const INDEX_KNUCKLE3: usize = 8usize

Source

pub const MIDDLE_BASE: usize = 9usize

Source

pub const MIDDLE_KNUCKLE1: usize = 10usize

Source

pub const MIDDLE_KNUCKLE2: usize = 11usize

Source

pub const MIDDLE_KNUCKLE3: usize = 12usize

Source

pub const RING_BASE: usize = 13usize

Source

pub const RING_KNUCKLE1: usize = 14usize

Source

pub const RING_KNUCKLE2: usize = 15usize

Source

pub const RING_KNUCKLE3: usize = 16usize

Source

pub const LITTLE_BASE: usize = 17usize

Source

pub const LITTLE_KNUCKLE1: usize = 18usize

Source

pub const LITTLE_KNUCKLE2: usize = 19usize

Source

pub const LITTLE_KNUCKLE3: usize = 20usize

Source

pub const END_KNUCKLES: [usize; 5]

Source

pub const THUMB_TIP: usize = 0usize

Source

pub const INDEX_TIP: usize = 1usize

Source

pub const MIDDLE_TIP: usize = 2usize

Source

pub const RING_TIP: usize = 3usize

Source

pub const LITTLE_TIP: usize = 4usize

Source

pub fn in_view(&self) -> bool

Source

pub fn aim_valid(&self) -> bool

Source

pub fn menu_pressed(&self) -> bool

Source

pub fn dominant_hand(&self) -> bool

Source

pub fn pinch_index(&self) -> bool

Source

pub fn pinch_middle(&self) -> bool

Source

pub fn pinch_ring(&self) -> bool

Source

pub fn pinch_little(&self) -> bool

Source

pub fn pinch_only_little(&self) -> bool

Source

pub fn pinch_only_index(&self) -> bool

Source

pub fn pinch_not_index(&self) -> bool

Source

pub fn pinch_strength_index(&self) -> f32

Source

pub fn pinch_strength_middle(&self) -> f32

Source

pub fn pinch_strength_ring(&self) -> f32

Source

pub fn pinch_strength_pinky(&self) -> f32

Source

pub fn end_knuckles(&self) -> [&Pose; 5]

Source

pub fn tip_active(&self, tip: usize) -> bool

Source

pub fn tip_pos_thumb(&self) -> Vec3

Source

pub fn tip_pos_index(&self) -> Vec3

Source

pub fn tip_pos_middle(&self) -> Vec3

Source

pub fn tip_pos_ring(&self) -> Vec3

Source

pub fn tip_pos_little(&self) -> Vec3

Trait Implementations§

Source§

impl Clone for XrHand

Source§

fn clone(&self) -> XrHand

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl DeBin for XrHand

Source§

impl Debug for XrHand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for XrHand

Source§

fn default() -> XrHand

Returns the “default value” for a type. Read more
Source§

impl SerBin for XrHand

Source§

fn ser_bin(&self, s: &mut Vec<u8>)

Source§

fn serialize_bin(&self) -> Vec<u8>

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
where T: 'static + Debug + ?Sized,

Source§

fn debug_fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Source§

fn ref_cast_type_id(&self) -> TypeId
where Self: 'static,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WidgetActionTrait for T
where T: 'static + Clone + Debug + Send + Sync + ?Sized,