#[repr(C)]pub struct XRNodeState {
pub m_type: XRNode,
pub m_available_fields: AvailableTrackingData,
pub m_position: Vector3,
pub m_rotation: Quaternion,
pub m_velocity: Vector3,
pub m_angular_velocity: Vector3,
pub m_acceleration: Vector3,
pub m_angular_acceleration: Vector3,
pub m_tracked: i32,
pub m_unique_id: u64,
}Expand description
Fields§
§m_type: XRNode§m_available_fields: AvailableTrackingData§m_position: Vector3§m_rotation: Quaternion§m_velocity: Vector3§m_angular_velocity: Vector3§m_acceleration: Vector3§m_angular_acceleration: Vector3§m_tracked: i32§m_unique_id: u64Implementations§
Source§impl XRNodeState
impl XRNodeState
Sourcepub fn set_unique_id(&mut self, value: impl Into<u64>)
pub fn set_unique_id(&mut self, value: impl Into<u64>)
set_uniqueID(u64) overload
Sourcepub fn set_node_type(&mut self, value: impl Into<XRNode>)
pub fn set_node_type(&mut self, value: impl Into<XRNode>)
set_nodeType(crate::unity_engine::xr::xrnode::XRNode) overload
Sourcepub fn set_tracked(&mut self, value: impl Into<bool>)
pub fn set_tracked(&mut self, value: impl Into<bool>)
set_tracked(bool) overload
Source§impl XRNodeState
impl XRNodeState
pub fn set_unique_id_method_info() -> &'static MethodInfo
pub fn set_node_type_method_info() -> &'static MethodInfo
pub fn set_tracked_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for XRNodeState
impl ClassIdentity for XRNodeState
Source§impl Clone for XRNodeState
impl Clone for XRNodeState
Source§fn clone(&self) -> XRNodeState
fn clone(&self) -> XRNodeState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for XRNodeState
Auto Trait Implementations§
impl Freeze for XRNodeState
impl RefUnwindSafe for XRNodeState
impl Send for XRNodeState
impl Sync for XRNodeState
impl Unpin for XRNodeState
impl UnwindSafe for XRNodeState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)