#[repr(u32)]pub enum InteractorType {
Point = 0,
Line = 1,
}
Expand description
Should this interactor behave like a single point in space interacting with elements? Or should it behave more like an intangible line? Hit detection is still capsule shaped, but behavior may change a little to reflect the primary position of the point interactor. This can also be thought of as direct interaction vs indirect interaction. https://stereokit.net/Pages/StereoKit/InteractorType.html
see also Interactor
Variants§
Point = 0
The interactor represents a physical point in space, such as a fingertip or the point of a pencil. Points do not use directionality for their interactions, nor do they take into account the distance of an element along the ‘ray’ of the capsule.
Line = 1
The interactor represents a less tangible line or ray of interaction, such as a laser pointer or eye gaze. Lines will occasionally consider the directionality of the interactor to discard backpressing certain elements, and use distance along the line for occluding elements that are behind other elements.
Trait Implementations§
Source§impl Clone for InteractorType
impl Clone for InteractorType
Source§fn clone(&self) -> InteractorType
fn clone(&self) -> InteractorType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InteractorType
impl Debug for InteractorType
Source§impl PartialEq for InteractorType
impl PartialEq for InteractorType
impl Copy for InteractorType
impl Eq for InteractorType
impl StructuralPartialEq for InteractorType
Auto Trait Implementations§
impl Freeze for InteractorType
impl RefUnwindSafe for InteractorType
impl Send for InteractorType
impl Sync for InteractorType
impl Unpin for InteractorType
impl UnwindSafe for InteractorType
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.