diff --git a/crates/unavi-scripting/src/api/wired/input/input_handler.rs b/crates/unavi-scripting/src/api/wired/input/input_handler.rs index 414fc5828..f58142729 100644 --- a/crates/unavi-scripting/src/api/wired/input/input_handler.rs +++ b/crates/unavi-scripting/src/api/wired/input/input_handler.rs @@ -11,7 +11,7 @@ use crate::{ use super::bindings::{ handler::{HostInputHandler, InputEvent}, - types::{InputType, Ray}, + types::{InputAction, InputData, Ray}, }; pub enum ScriptInputEvent { @@ -65,10 +65,7 @@ impl HostInputHandler for StoreState { Ok(res) } - fn handle_input( - &mut self, - self_: Resource, - ) -> wasm_bridge::Result> { + fn next(&mut self, self_: Resource) -> wasm_bridge::Result> { let data = self.table.get(&self_)?; if let Ok(event) = data.receiver.try_recv() { @@ -78,12 +75,11 @@ impl HostInputHandler for StoreState { orientation, } => InputEvent { id: 0, - input: InputType::Ray(Ray { + action: InputAction::Collision, + data: InputData::Ray(Ray { origin: origin.into(), orientation: orientation.into(), }), - order: 0, - distance: 0.0, }, }; diff --git a/wasm/example-unavi-layout/src/bindings.rs b/wasm/example-unavi-layout/src/bindings.rs index 7ab1a0b09..e3f821efd 100644 --- a/wasm/example-unavi-layout/src/bindings.rs +++ b/wasm/example-unavi-layout/src/bindings.rs @@ -2332,46 +2332,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -2380,20 +2374,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -2477,16 +2468,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -2502,535 +2493,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -3039,72 +3039,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -5651,8 +5620,8 @@ pub(crate) use __export_script_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:script:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 7003] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xde5\x01A\x02\x01A$\x01\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 6978] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xc55\x01A\x02\x01A$\x01\ B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\0\ \x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01r\ \x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ @@ -5688,125 +5657,125 @@ method]mesh.create-primitive\x01\x1a\x01@\x02\x04self\x12\x05value\x17\x01\0\x04 \0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\x06distal\x07\x08proximal\x07\x0ametac\ arpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\x01r\x09\x04side\x05\x05thumb\x09\x05\ index\x09\x06middle\x09\x04ring\x09\x06little\x09\x04palm\x07\x05wrist\x07\x05el\ -bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06origin\x01\x0borientation\x03\x04\0\x03\ -ray\x03\0\x0d\x01r\x03\x06origin\x01\x0borientation\x03\x06radiusv\x04\0\x03tip\x03\ -\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainp\ -ut-type\x03\0\x11\x01r\x04\x02idw\x05input\x12\x08distancev\x05ordery\x04\0\x0bi\ -nput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x06\x02\x03\0\x03\x0binput\ --event\x01B\x0a\x02\x03\x02\x01\x07\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-\ -handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\x04\ -\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\"[method]input-handler.handl\ -e-input\x01\x07\x03\x01\x13wired:input/handler\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\ -\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\ -\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\ -\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07\ -dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\ -\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04\ -self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05va\ -luev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0fri\ -gid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\ -\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\ -\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[met\ -hod]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\ -\x01\x13wired:physics/types\x05\x09\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput\ --handler\x02\x03\0\0\x09transform\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0arig\ -id-body\x01BE\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\ -\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0d\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x0f\x02\x03\0\x06\x04node\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09\ -transform\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\ -\x04\0\x05scene\x03\x01\x01i\x05\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.lis\ -t-scenes\x01\x08\x01h\x05\x01@\x01\x05value\x09\x01\0\x04\0\x16[static]root.add-\ -scene\x01\x0a\x04\0\x19[static]root.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[\ -constructor]scene\x01\x0b\x01i\x03\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18\ -[method]scene.list-nodes\x01\x0e\x01@\x01\x04self\x09\0\x0c\x04\0\x19[method]sce\ -ne.create-node\x01\x0f\x01h\x03\x01@\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16\ -[method]scene.add-node\x01\x11\x04\0\x19[method]scene.remove-node\x01\x11\x01@\x01\ -\x04self\x09\0\x01\x04\0\x17[method]scene.transform\x01\x12\x01@\x02\x04self\x09\ -\x05value\x01\x01\0\x04\0\x1b[method]scene.set-transform\x01\x13\x01@\x01\x04sel\ -f\x09\0\x7f\x04\0\x14[method]scene.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\ -\x01\0\x04\0\x18[method]scene.set-active\x01\x15\x03\x01\x0funavi:scene/api\x05\x11\ -\x02\x03\0\0\x04vec2\x01BY\x02\x03\x02\x01\x12\x04\0\x04vec2\x03\0\0\x02\x03\x02\ -\x01\x04\x04\0\x04vec3\x03\0\x02\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\ -\x03\x02\x01\x10\x04\0\x04node\x03\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cyl\ -inder\x03\x01\x04\0\x06cuboid\x03\x01\x01r\x01\x0csubdivisions}\x04\0\x0asphere-\ -ico\x03\0\x0b\x01r\x02\x07sectors}\x06stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\ -\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\ -\x03\x01\x01i\x08\x01@\x01\x04size\x01\0\x12\x04\0\x16[constructor]rectangle\x01\ -\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\x04\0\x16[method]rectangle.size\x01\x15\ -\x01@\x02\x04self\x14\x05value\x01\x01\0\x04\0\x1a[method]rectangle.set-size\x01\ -\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\x04\0\x19[method]rectangle.to-mesh\x01\x18\ -\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\0\x19[method]rectangle.to-node\x01\x1a\x04\ -\0![method]rectangle.to-physics-node\x01\x1a\x01i\x09\x01@\x02\x06radiusv\x06hei\ -ghtv\0\x1b\x04\0\x15[constructor]cylinder\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\ -\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\x01@\x02\x04self\x1d\x05value\x7f\x01\ -\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\x01@\x01\x04self\x1d\0v\x04\0\x17[m\ -ethod]cylinder.height\x01\x20\x01@\x02\x04self\x1d\x05valuev\x01\0\x04\0\x1b[met\ -hod]cylinder.set-height\x01!\x04\0\x17[method]cylinder.radius\x01\x20\x04\0\x1b[\ -method]cylinder.set-radius\x01!\x01@\x01\x04self\x1d\0}\x04\0\x1b[method]cylinde\ -r.resolution\x01\"\x01@\x02\x04self\x1d\x05value}\x01\0\x04\0\x1f[method]cylinde\ -r.set-resolution\x01#\x04\0\x19[method]cylinder.segments\x01\"\x04\0\x1d[method]\ -cylinder.set-segments\x01#\x01@\x01\x04self\x1d\0\x17\x04\0\x18[method]cylinder.\ -to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18[method]cylinder.to-node\x01%\x04\ -\0\x20[method]cylinder.to-physics-node\x01%\x01i\x0a\x01@\x01\x04size\x03\0&\x04\ -\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\x04self(\0\x03\x04\0\x13[method\ -]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\x01\0\x04\0\x17[method]cuboid.s\ -et-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[method]cuboid.to-mesh\x01+\x01@\x01\ -\x04self(\0\x19\x04\0\x16[method]cuboid.to-node\x01,\x04\0\x1e[method]cuboid.to-\ -physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\0-\x04\0\x16[static]sphere.new-ic\ -o\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01h\x11\x01@\x01\x04self/\0v\x04\0\x15\ -[method]sphere.radius\x010\x01@\x02\x04self/\x05valuev\x01\0\x04\0\x19[method]sp\ -here.set-radius\x011\x01@\x01\x04self/\0\x10\x04\0\x13[method]sphere.kind\x012\x01\ -@\x02\x04self/\x05value\x10\x01\0\x04\0\x17[method]sphere.set-kind\x013\x01@\x01\ -\x04self/\0\x17\x04\0\x16[method]sphere.to-mesh\x014\x01@\x01\x04self/\0\x19\x04\ -\0\x16[method]sphere.to-node\x015\x04\0\x1e[method]sphere.to-physics-node\x015\x03\ -\x01\x10unavi:shapes/api\x05\x13\x01B#\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\ -\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x01m\x03\x06center\x03end\x05start\x04\ -\0\x09alignment\x03\0\x04\x04\0\x09container\x03\x01\x01i\x06\x01@\x01\x04size\x01\ -\0\x07\x04\0\x16[constructor]container\x01\x08\x01h\x06\x01@\x01\x04self\x09\0\x07\ -\x04\0\x15[method]container.ref\x01\x0a\x01i\x03\x01@\x01\x04self\x09\0\x0b\x04\0\ -\x16[method]container.root\x01\x0c\x04\0\x17[method]container.inner\x01\x0c\x01p\ -\x07\x01@\x01\x04self\x09\0\x0d\x04\0\x1f[method]container.list-children\x01\x0e\ -\x01@\x02\x04self\x09\x05child\x09\x01\0\x04\0\x1b[method]container.add-child\x01\ -\x0f\x04\0\x1e[method]container.remove-child\x01\x0f\x01@\x01\x04self\x09\0\x01\x04\ -\0\x16[method]container.size\x01\x10\x01@\x02\x04self\x09\x05value\x01\x01\0\x04\ -\0\x1a[method]container.set-size\x01\x11\x01@\x01\x04self\x09\0\x05\x04\0\x19[me\ -thod]container.align-x\x01\x12\x04\0\x19[method]container.align-y\x01\x12\x04\0\x19\ -[method]container.align-z\x01\x12\x01@\x02\x04self\x09\x05value\x05\x01\0\x04\0\x1d\ -[method]container.set-align-x\x01\x13\x04\0\x1d[method]container.set-align-y\x01\ -\x13\x04\0\x1d[method]container.set-align-z\x01\x13\x03\x01\x16unavi:layout/cont\ -ainer\x05\x14\x02\x03\0\x09\x09container\x01B\x16\x02\x03\x02\x01\x15\x04\0\x09c\ -ontainer\x03\0\0\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\x04\0\x04grid\x03\x01\ -\x01i\x04\x01@\x02\x04size\x03\x04rows\x03\0\x05\x04\0\x11[constructor]grid\x01\x06\ -\x01h\x04\x01i\x01\x01@\x01\x04self\x07\0\x08\x04\0\x11[method]grid.root\x01\x09\ -\x01p\x08\x01@\x01\x04self\x07\0\x0a\x04\0\x12[method]grid.cells\x01\x0b\x01k\x08\ -\x01@\x04\x04self\x07\x01xy\x01yy\x01zy\0\x0c\x04\0\x11[method]grid.cell\x01\x0d\ -\x01@\x01\x04self\x07\0\x03\x04\0\x11[method]grid.rows\x01\x0e\x01@\x02\x04self\x07\ -\x05value\x03\x01\0\x04\0\x15[method]grid.set-rows\x01\x0f\x03\x01\x11unavi:layo\ -ut/grid\x05\x16\x01B\x07\x04\0\x06script\x03\x01\x01i\0\x01@\0\0\x01\x04\0\x13[c\ -onstructor]script\x01\x02\x01h\0\x01@\x02\x04self\x03\x05deltav\x01\0\x04\0\x15[\ -method]script.update\x01\x04\x04\x01\x12wired:script/types\x05\x17\x04\x01\x1bex\ -ample:unavi-layout/script\x04\0\x0b\x0c\x01\0\x06script\x03\0\0\0G\x09producers\x01\ -\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-bindgen-rust\x060.25.0"; +bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0borientation\x03\x06origin\x01\x04\0\x03\ +ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x04\0\x0ainput-data\x03\ +\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\0\x04\0\x0cinput-action\x03\0\x11\x01\ +r\x03\x02idw\x06action\x12\x04data\x10\x04\0\x0binput-event\x03\0\x13\x03\x01\x11\ +wired:input/types\x05\x06\x02\x03\0\x03\x0binput-event\x01B\x0a\x02\x03\x02\x01\x07\ +\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\ +\x04\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\ +\0\x06\x04\0\x1a[method]input-handler.next\x01\x07\x03\x01\x13wired:input/handle\ +r\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\ +\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06\ +cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\ +\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0f\ +rigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constru\ +ctor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider\ +.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.\ +set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[con\ +structor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method\ +]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\0\x1d[met\ +hod]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\x12\x04\ +\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/types\x05\x09\ +\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput-handler\x02\x03\0\0\x09transform\x02\ +\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BE\x02\x03\x02\x01\x0a\x04\ +\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\x02\x03\x02\ +\x01\x0c\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0d\x04\0\x08collider\x03\0\ +\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x0f\x02\x03\0\ +\x06\x04node\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\0\x02\x03\x02\x01\ +\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\x04\0\x05scene\x03\x01\x01i\x05\ +\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.list-scenes\x01\x08\x01h\x05\x01@\x01\ +\x05value\x09\x01\0\x04\0\x16[static]root.add-scene\x01\x0a\x04\0\x19[static]roo\ +t.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[constructor]scene\x01\x0b\x01i\x03\ +\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18[method]scene.list-nodes\x01\x0e\x01\ +@\x01\x04self\x09\0\x0c\x04\0\x19[method]scene.create-node\x01\x0f\x01h\x03\x01@\ +\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16[method]scene.add-node\x01\x11\x04\0\ +\x19[method]scene.remove-node\x01\x11\x01@\x01\x04self\x09\0\x01\x04\0\x17[metho\ +d]scene.transform\x01\x12\x01@\x02\x04self\x09\x05value\x01\x01\0\x04\0\x1b[meth\ +od]scene.set-transform\x01\x13\x01@\x01\x04self\x09\0\x7f\x04\0\x14[method]scene\ +.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\x01\0\x04\0\x18[method]scene.s\ +et-active\x01\x15\x03\x01\x0funavi:scene/api\x05\x11\x02\x03\0\0\x04vec2\x01BY\x02\ +\x03\x02\x01\x12\x04\0\x04vec2\x03\0\0\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\ +\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\x03\x02\x01\x10\x04\0\x04node\x03\ +\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cylinder\x03\x01\x04\0\x06cuboid\x03\x01\ +\x01r\x01\x0csubdivisions}\x04\0\x0asphere-ico\x03\0\x0b\x01r\x02\x07sectors}\x06\ +stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\ +\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\x03\x01\x01i\x08\x01@\x01\x04size\x01\ +\0\x12\x04\0\x16[constructor]rectangle\x01\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\ +\x04\0\x16[method]rectangle.size\x01\x15\x01@\x02\x04self\x14\x05value\x01\x01\0\ +\x04\0\x1a[method]rectangle.set-size\x01\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\ +\x04\0\x19[method]rectangle.to-mesh\x01\x18\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\ +\0\x19[method]rectangle.to-node\x01\x1a\x04\0![method]rectangle.to-physics-node\x01\ +\x1a\x01i\x09\x01@\x02\x06radiusv\x06heightv\0\x1b\x04\0\x15[constructor]cylinde\ +r\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\ +\x01@\x02\x04self\x1d\x05value\x7f\x01\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\ +\x01@\x01\x04self\x1d\0v\x04\0\x17[method]cylinder.height\x01\x20\x01@\x02\x04se\ +lf\x1d\x05valuev\x01\0\x04\0\x1b[method]cylinder.set-height\x01!\x04\0\x17[metho\ +d]cylinder.radius\x01\x20\x04\0\x1b[method]cylinder.set-radius\x01!\x01@\x01\x04\ +self\x1d\0}\x04\0\x1b[method]cylinder.resolution\x01\"\x01@\x02\x04self\x1d\x05v\ +alue}\x01\0\x04\0\x1f[method]cylinder.set-resolution\x01#\x04\0\x19[method]cylin\ +der.segments\x01\"\x04\0\x1d[method]cylinder.set-segments\x01#\x01@\x01\x04self\x1d\ +\0\x17\x04\0\x18[method]cylinder.to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18\ +[method]cylinder.to-node\x01%\x04\0\x20[method]cylinder.to-physics-node\x01%\x01\ +i\x0a\x01@\x01\x04size\x03\0&\x04\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\ +\x04self(\0\x03\x04\0\x13[method]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\ +\x01\0\x04\0\x17[method]cuboid.set-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[m\ +ethod]cuboid.to-mesh\x01+\x01@\x01\x04self(\0\x19\x04\0\x16[method]cuboid.to-nod\ +e\x01,\x04\0\x1e[method]cuboid.to-physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\ +\0-\x04\0\x16[static]sphere.new-ico\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01\ +h\x11\x01@\x01\x04self/\0v\x04\0\x15[method]sphere.radius\x010\x01@\x02\x04self/\ +\x05valuev\x01\0\x04\0\x19[method]sphere.set-radius\x011\x01@\x01\x04self/\0\x10\ +\x04\0\x13[method]sphere.kind\x012\x01@\x02\x04self/\x05value\x10\x01\0\x04\0\x17\ +[method]sphere.set-kind\x013\x01@\x01\x04self/\0\x17\x04\0\x16[method]sphere.to-\ +mesh\x014\x01@\x01\x04self/\0\x19\x04\0\x16[method]sphere.to-node\x015\x04\0\x1e\ +[method]sphere.to-physics-node\x015\x03\x01\x10unavi:shapes/api\x05\x13\x01B#\x02\ +\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\ +\x01m\x03\x06center\x03end\x05start\x04\0\x09alignment\x03\0\x04\x04\0\x09contai\ +ner\x03\x01\x01i\x06\x01@\x01\x04size\x01\0\x07\x04\0\x16[constructor]container\x01\ +\x08\x01h\x06\x01@\x01\x04self\x09\0\x07\x04\0\x15[method]container.ref\x01\x0a\x01\ +i\x03\x01@\x01\x04self\x09\0\x0b\x04\0\x16[method]container.root\x01\x0c\x04\0\x17\ +[method]container.inner\x01\x0c\x01p\x07\x01@\x01\x04self\x09\0\x0d\x04\0\x1f[me\ +thod]container.list-children\x01\x0e\x01@\x02\x04self\x09\x05child\x09\x01\0\x04\ +\0\x1b[method]container.add-child\x01\x0f\x04\0\x1e[method]container.remove-chil\ +d\x01\x0f\x01@\x01\x04self\x09\0\x01\x04\0\x16[method]container.size\x01\x10\x01\ +@\x02\x04self\x09\x05value\x01\x01\0\x04\0\x1a[method]container.set-size\x01\x11\ +\x01@\x01\x04self\x09\0\x05\x04\0\x19[method]container.align-x\x01\x12\x04\0\x19\ +[method]container.align-y\x01\x12\x04\0\x19[method]container.align-z\x01\x12\x01\ +@\x02\x04self\x09\x05value\x05\x01\0\x04\0\x1d[method]container.set-align-x\x01\x13\ +\x04\0\x1d[method]container.set-align-y\x01\x13\x04\0\x1d[method]container.set-a\ +lign-z\x01\x13\x03\x01\x16unavi:layout/container\x05\x14\x02\x03\0\x09\x09contai\ +ner\x01B\x16\x02\x03\x02\x01\x15\x04\0\x09container\x03\0\0\x02\x03\x02\x01\x04\x04\ +\0\x04vec3\x03\0\x02\x04\0\x04grid\x03\x01\x01i\x04\x01@\x02\x04size\x03\x04rows\ +\x03\0\x05\x04\0\x11[constructor]grid\x01\x06\x01h\x04\x01i\x01\x01@\x01\x04self\ +\x07\0\x08\x04\0\x11[method]grid.root\x01\x09\x01p\x08\x01@\x01\x04self\x07\0\x0a\ +\x04\0\x12[method]grid.cells\x01\x0b\x01k\x08\x01@\x04\x04self\x07\x01xy\x01yy\x01\ +zy\0\x0c\x04\0\x11[method]grid.cell\x01\x0d\x01@\x01\x04self\x07\0\x03\x04\0\x11\ +[method]grid.rows\x01\x0e\x01@\x02\x04self\x07\x05value\x03\x01\0\x04\0\x15[meth\ +od]grid.set-rows\x01\x0f\x03\x01\x11unavi:layout/grid\x05\x16\x01B\x07\x04\0\x06\ +script\x03\x01\x01i\0\x01@\0\0\x01\x04\0\x13[constructor]script\x01\x02\x01h\0\x01\ +@\x02\x04self\x03\x05deltav\x01\0\x04\0\x15[method]script.update\x01\x04\x04\x01\ +\x12wired:script/types\x05\x17\x04\x01\x1bexample:unavi-layout/script\x04\0\x0b\x0c\ +\x01\0\x06script\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-componen\ +t\x070.208.1\x10wit-bindgen-rust\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wasm/example-unavi-scene/src/bindings.rs b/wasm/example-unavi-scene/src/bindings.rs index 91a8df59c..91aab33a8 100644 --- a/wasm/example-unavi-scene/src/bindings.rs +++ b/wasm/example-unavi-scene/src/bindings.rs @@ -1628,46 +1628,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -1676,20 +1670,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -1773,16 +1764,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -1798,535 +1789,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -2335,72 +2335,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -4947,8 +4916,8 @@ pub(crate) use __export_script_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:script:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 5977] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xdc-\x01A\x02\x01A\x1f\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 5952] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xc3-\x01A\x02\x01A\x1f\ \x01B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\ \0\x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01\ r\x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ @@ -4984,103 +4953,102 @@ method]mesh.create-primitive\x01\x1a\x01@\x02\x04self\x12\x05value\x17\x01\0\x04 \0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\x06distal\x07\x08proximal\x07\x0ametac\ arpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\x01r\x09\x04side\x05\x05thumb\x09\x05\ index\x09\x06middle\x09\x04ring\x09\x06little\x09\x04palm\x07\x05wrist\x07\x05el\ -bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06origin\x01\x0borientation\x03\x04\0\x03\ -ray\x03\0\x0d\x01r\x03\x06origin\x01\x0borientation\x03\x06radiusv\x04\0\x03tip\x03\ -\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainp\ -ut-type\x03\0\x11\x01r\x04\x02idw\x05input\x12\x08distancev\x05ordery\x04\0\x0bi\ -nput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x06\x02\x03\0\x03\x0binput\ --event\x01B\x0a\x02\x03\x02\x01\x07\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-\ -handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\x04\ -\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\"[method]input-handler.handl\ -e-input\x01\x07\x03\x01\x13wired:input/handler\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\ -\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\ -\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\ -\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07\ -dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\ -\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04\ -self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05va\ -luev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0fri\ -gid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\ -\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\ -\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[met\ -hod]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\ -\x01\x13wired:physics/types\x05\x09\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput\ --handler\x02\x03\0\0\x09transform\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0arig\ -id-body\x01BE\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\ -\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0d\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x0f\x02\x03\0\x06\x04node\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09\ -transform\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\ -\x04\0\x05scene\x03\x01\x01i\x05\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.lis\ -t-scenes\x01\x08\x01h\x05\x01@\x01\x05value\x09\x01\0\x04\0\x16[static]root.add-\ -scene\x01\x0a\x04\0\x19[static]root.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[\ -constructor]scene\x01\x0b\x01i\x03\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18\ -[method]scene.list-nodes\x01\x0e\x01@\x01\x04self\x09\0\x0c\x04\0\x19[method]sce\ -ne.create-node\x01\x0f\x01h\x03\x01@\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16\ -[method]scene.add-node\x01\x11\x04\0\x19[method]scene.remove-node\x01\x11\x01@\x01\ -\x04self\x09\0\x01\x04\0\x17[method]scene.transform\x01\x12\x01@\x02\x04self\x09\ -\x05value\x01\x01\0\x04\0\x1b[method]scene.set-transform\x01\x13\x01@\x01\x04sel\ -f\x09\0\x7f\x04\0\x14[method]scene.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\ -\x01\0\x04\0\x18[method]scene.set-active\x01\x15\x03\x01\x0funavi:scene/api\x05\x11\ -\x02\x03\0\0\x04vec2\x01BY\x02\x03\x02\x01\x12\x04\0\x04vec2\x03\0\0\x02\x03\x02\ -\x01\x04\x04\0\x04vec3\x03\0\x02\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\ -\x03\x02\x01\x10\x04\0\x04node\x03\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cyl\ -inder\x03\x01\x04\0\x06cuboid\x03\x01\x01r\x01\x0csubdivisions}\x04\0\x0asphere-\ -ico\x03\0\x0b\x01r\x02\x07sectors}\x06stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\ -\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\ -\x03\x01\x01i\x08\x01@\x01\x04size\x01\0\x12\x04\0\x16[constructor]rectangle\x01\ -\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\x04\0\x16[method]rectangle.size\x01\x15\ -\x01@\x02\x04self\x14\x05value\x01\x01\0\x04\0\x1a[method]rectangle.set-size\x01\ -\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\x04\0\x19[method]rectangle.to-mesh\x01\x18\ -\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\0\x19[method]rectangle.to-node\x01\x1a\x04\ -\0![method]rectangle.to-physics-node\x01\x1a\x01i\x09\x01@\x02\x06radiusv\x06hei\ -ghtv\0\x1b\x04\0\x15[constructor]cylinder\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\ -\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\x01@\x02\x04self\x1d\x05value\x7f\x01\ -\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\x01@\x01\x04self\x1d\0v\x04\0\x17[m\ -ethod]cylinder.height\x01\x20\x01@\x02\x04self\x1d\x05valuev\x01\0\x04\0\x1b[met\ -hod]cylinder.set-height\x01!\x04\0\x17[method]cylinder.radius\x01\x20\x04\0\x1b[\ -method]cylinder.set-radius\x01!\x01@\x01\x04self\x1d\0}\x04\0\x1b[method]cylinde\ -r.resolution\x01\"\x01@\x02\x04self\x1d\x05value}\x01\0\x04\0\x1f[method]cylinde\ -r.set-resolution\x01#\x04\0\x19[method]cylinder.segments\x01\"\x04\0\x1d[method]\ -cylinder.set-segments\x01#\x01@\x01\x04self\x1d\0\x17\x04\0\x18[method]cylinder.\ -to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18[method]cylinder.to-node\x01%\x04\ -\0\x20[method]cylinder.to-physics-node\x01%\x01i\x0a\x01@\x01\x04size\x03\0&\x04\ -\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\x04self(\0\x03\x04\0\x13[method\ -]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\x01\0\x04\0\x17[method]cuboid.s\ -et-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[method]cuboid.to-mesh\x01+\x01@\x01\ -\x04self(\0\x19\x04\0\x16[method]cuboid.to-node\x01,\x04\0\x1e[method]cuboid.to-\ -physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\0-\x04\0\x16[static]sphere.new-ic\ -o\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01h\x11\x01@\x01\x04self/\0v\x04\0\x15\ -[method]sphere.radius\x010\x01@\x02\x04self/\x05valuev\x01\0\x04\0\x19[method]sp\ -here.set-radius\x011\x01@\x01\x04self/\0\x10\x04\0\x13[method]sphere.kind\x012\x01\ -@\x02\x04self/\x05value\x10\x01\0\x04\0\x17[method]sphere.set-kind\x013\x01@\x01\ -\x04self/\0\x17\x04\0\x16[method]sphere.to-mesh\x014\x01@\x01\x04self/\0\x19\x04\ -\0\x16[method]sphere.to-node\x015\x04\0\x1e[method]sphere.to-physics-node\x015\x03\ -\x01\x10unavi:shapes/api\x05\x13\x01B\x07\x04\0\x06script\x03\x01\x01i\0\x01@\0\0\ -\x01\x04\0\x13[constructor]script\x01\x02\x01h\0\x01@\x02\x04self\x03\x05deltav\x01\ -\0\x04\0\x15[method]script.update\x01\x04\x04\x01\x12wired:script/types\x05\x14\x04\ -\x01\x1aexample:unavi-scene/script\x04\0\x0b\x0c\x01\0\x06script\x03\0\0\0G\x09p\ -roducers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-bindgen-rust\ -\x060.25.0"; +bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0borientation\x03\x06origin\x01\x04\0\x03\ +ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x04\0\x0ainput-data\x03\ +\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\0\x04\0\x0cinput-action\x03\0\x11\x01\ +r\x03\x02idw\x06action\x12\x04data\x10\x04\0\x0binput-event\x03\0\x13\x03\x01\x11\ +wired:input/types\x05\x06\x02\x03\0\x03\x0binput-event\x01B\x0a\x02\x03\x02\x01\x07\ +\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\ +\x04\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\ +\0\x06\x04\0\x1a[method]input-handler.next\x01\x07\x03\x01\x13wired:input/handle\ +r\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\ +\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06\ +cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\ +\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0f\ +rigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constru\ +ctor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider\ +.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.\ +set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[con\ +structor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method\ +]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\0\x1d[met\ +hod]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\x12\x04\ +\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/types\x05\x09\ +\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput-handler\x02\x03\0\0\x09transform\x02\ +\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BE\x02\x03\x02\x01\x0a\x04\ +\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\x02\x03\x02\ +\x01\x0c\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0d\x04\0\x08collider\x03\0\ +\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x0f\x02\x03\0\ +\x06\x04node\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\0\x02\x03\x02\x01\ +\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\x04\0\x05scene\x03\x01\x01i\x05\ +\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.list-scenes\x01\x08\x01h\x05\x01@\x01\ +\x05value\x09\x01\0\x04\0\x16[static]root.add-scene\x01\x0a\x04\0\x19[static]roo\ +t.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[constructor]scene\x01\x0b\x01i\x03\ +\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18[method]scene.list-nodes\x01\x0e\x01\ +@\x01\x04self\x09\0\x0c\x04\0\x19[method]scene.create-node\x01\x0f\x01h\x03\x01@\ +\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16[method]scene.add-node\x01\x11\x04\0\ +\x19[method]scene.remove-node\x01\x11\x01@\x01\x04self\x09\0\x01\x04\0\x17[metho\ +d]scene.transform\x01\x12\x01@\x02\x04self\x09\x05value\x01\x01\0\x04\0\x1b[meth\ +od]scene.set-transform\x01\x13\x01@\x01\x04self\x09\0\x7f\x04\0\x14[method]scene\ +.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\x01\0\x04\0\x18[method]scene.s\ +et-active\x01\x15\x03\x01\x0funavi:scene/api\x05\x11\x02\x03\0\0\x04vec2\x01BY\x02\ +\x03\x02\x01\x12\x04\0\x04vec2\x03\0\0\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\ +\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\x03\x02\x01\x10\x04\0\x04node\x03\ +\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cylinder\x03\x01\x04\0\x06cuboid\x03\x01\ +\x01r\x01\x0csubdivisions}\x04\0\x0asphere-ico\x03\0\x0b\x01r\x02\x07sectors}\x06\ +stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\ +\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\x03\x01\x01i\x08\x01@\x01\x04size\x01\ +\0\x12\x04\0\x16[constructor]rectangle\x01\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\ +\x04\0\x16[method]rectangle.size\x01\x15\x01@\x02\x04self\x14\x05value\x01\x01\0\ +\x04\0\x1a[method]rectangle.set-size\x01\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\ +\x04\0\x19[method]rectangle.to-mesh\x01\x18\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\ +\0\x19[method]rectangle.to-node\x01\x1a\x04\0![method]rectangle.to-physics-node\x01\ +\x1a\x01i\x09\x01@\x02\x06radiusv\x06heightv\0\x1b\x04\0\x15[constructor]cylinde\ +r\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\ +\x01@\x02\x04self\x1d\x05value\x7f\x01\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\ +\x01@\x01\x04self\x1d\0v\x04\0\x17[method]cylinder.height\x01\x20\x01@\x02\x04se\ +lf\x1d\x05valuev\x01\0\x04\0\x1b[method]cylinder.set-height\x01!\x04\0\x17[metho\ +d]cylinder.radius\x01\x20\x04\0\x1b[method]cylinder.set-radius\x01!\x01@\x01\x04\ +self\x1d\0}\x04\0\x1b[method]cylinder.resolution\x01\"\x01@\x02\x04self\x1d\x05v\ +alue}\x01\0\x04\0\x1f[method]cylinder.set-resolution\x01#\x04\0\x19[method]cylin\ +der.segments\x01\"\x04\0\x1d[method]cylinder.set-segments\x01#\x01@\x01\x04self\x1d\ +\0\x17\x04\0\x18[method]cylinder.to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18\ +[method]cylinder.to-node\x01%\x04\0\x20[method]cylinder.to-physics-node\x01%\x01\ +i\x0a\x01@\x01\x04size\x03\0&\x04\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\ +\x04self(\0\x03\x04\0\x13[method]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\ +\x01\0\x04\0\x17[method]cuboid.set-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[m\ +ethod]cuboid.to-mesh\x01+\x01@\x01\x04self(\0\x19\x04\0\x16[method]cuboid.to-nod\ +e\x01,\x04\0\x1e[method]cuboid.to-physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\ +\0-\x04\0\x16[static]sphere.new-ico\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01\ +h\x11\x01@\x01\x04self/\0v\x04\0\x15[method]sphere.radius\x010\x01@\x02\x04self/\ +\x05valuev\x01\0\x04\0\x19[method]sphere.set-radius\x011\x01@\x01\x04self/\0\x10\ +\x04\0\x13[method]sphere.kind\x012\x01@\x02\x04self/\x05value\x10\x01\0\x04\0\x17\ +[method]sphere.set-kind\x013\x01@\x01\x04self/\0\x17\x04\0\x16[method]sphere.to-\ +mesh\x014\x01@\x01\x04self/\0\x19\x04\0\x16[method]sphere.to-node\x015\x04\0\x1e\ +[method]sphere.to-physics-node\x015\x03\x01\x10unavi:shapes/api\x05\x13\x01B\x07\ +\x04\0\x06script\x03\x01\x01i\0\x01@\0\0\x01\x04\0\x13[constructor]script\x01\x02\ +\x01h\0\x01@\x02\x04self\x03\x05deltav\x01\0\x04\0\x15[method]script.update\x01\x04\ +\x04\x01\x12wired:script/types\x05\x14\x04\x01\x1aexample:unavi-scene/script\x04\ +\0\x0b\x0c\x01\0\x06script\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwi\ +t-component\x070.208.1\x10wit-bindgen-rust\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wasm/example-unavi-shapes/src/bindings.rs b/wasm/example-unavi-shapes/src/bindings.rs index 1e47ab922..ae55736f4 100644 --- a/wasm/example-unavi-shapes/src/bindings.rs +++ b/wasm/example-unavi-shapes/src/bindings.rs @@ -1628,46 +1628,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -1676,20 +1670,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -1773,16 +1764,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -1798,535 +1789,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -2335,72 +2335,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -4947,8 +4916,8 @@ pub(crate) use __export_script_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:script:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 5978] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xdd-\x01A\x02\x01A\x1f\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 5953] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xc4-\x01A\x02\x01A\x1f\ \x01B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\ \0\x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01\ r\x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ @@ -4984,103 +4953,102 @@ method]mesh.create-primitive\x01\x1a\x01@\x02\x04self\x12\x05value\x17\x01\0\x04 \0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\x06distal\x07\x08proximal\x07\x0ametac\ arpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\x01r\x09\x04side\x05\x05thumb\x09\x05\ index\x09\x06middle\x09\x04ring\x09\x06little\x09\x04palm\x07\x05wrist\x07\x05el\ -bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06origin\x01\x0borientation\x03\x04\0\x03\ -ray\x03\0\x0d\x01r\x03\x06origin\x01\x0borientation\x03\x06radiusv\x04\0\x03tip\x03\ -\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainp\ -ut-type\x03\0\x11\x01r\x04\x02idw\x05input\x12\x08distancev\x05ordery\x04\0\x0bi\ -nput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x06\x02\x03\0\x03\x0binput\ --event\x01B\x0a\x02\x03\x02\x01\x07\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-\ -handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\x04\ -\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\"[method]input-handler.handl\ -e-input\x01\x07\x03\x01\x13wired:input/handler\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\ -\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\ -\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\ -\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07\ -dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\ -\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04\ -self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05va\ -luev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0fri\ -gid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\ -\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\ -\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[met\ -hod]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\ -\x01\x13wired:physics/types\x05\x09\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput\ --handler\x02\x03\0\0\x09transform\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0arig\ -id-body\x01BE\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\ -\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0d\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x0f\x02\x03\0\x06\x04node\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09\ -transform\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\ -\x04\0\x05scene\x03\x01\x01i\x05\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.lis\ -t-scenes\x01\x08\x01h\x05\x01@\x01\x05value\x09\x01\0\x04\0\x16[static]root.add-\ -scene\x01\x0a\x04\0\x19[static]root.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[\ -constructor]scene\x01\x0b\x01i\x03\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18\ -[method]scene.list-nodes\x01\x0e\x01@\x01\x04self\x09\0\x0c\x04\0\x19[method]sce\ -ne.create-node\x01\x0f\x01h\x03\x01@\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16\ -[method]scene.add-node\x01\x11\x04\0\x19[method]scene.remove-node\x01\x11\x01@\x01\ -\x04self\x09\0\x01\x04\0\x17[method]scene.transform\x01\x12\x01@\x02\x04self\x09\ -\x05value\x01\x01\0\x04\0\x1b[method]scene.set-transform\x01\x13\x01@\x01\x04sel\ -f\x09\0\x7f\x04\0\x14[method]scene.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\ -\x01\0\x04\0\x18[method]scene.set-active\x01\x15\x03\x01\x0funavi:scene/api\x05\x11\ -\x02\x03\0\0\x04vec2\x01BY\x02\x03\x02\x01\x12\x04\0\x04vec2\x03\0\0\x02\x03\x02\ -\x01\x04\x04\0\x04vec3\x03\0\x02\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\ -\x03\x02\x01\x10\x04\0\x04node\x03\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cyl\ -inder\x03\x01\x04\0\x06cuboid\x03\x01\x01r\x01\x0csubdivisions}\x04\0\x0asphere-\ -ico\x03\0\x0b\x01r\x02\x07sectors}\x06stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\ -\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\ -\x03\x01\x01i\x08\x01@\x01\x04size\x01\0\x12\x04\0\x16[constructor]rectangle\x01\ -\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\x04\0\x16[method]rectangle.size\x01\x15\ -\x01@\x02\x04self\x14\x05value\x01\x01\0\x04\0\x1a[method]rectangle.set-size\x01\ -\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\x04\0\x19[method]rectangle.to-mesh\x01\x18\ -\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\0\x19[method]rectangle.to-node\x01\x1a\x04\ -\0![method]rectangle.to-physics-node\x01\x1a\x01i\x09\x01@\x02\x06radiusv\x06hei\ -ghtv\0\x1b\x04\0\x15[constructor]cylinder\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\ -\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\x01@\x02\x04self\x1d\x05value\x7f\x01\ -\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\x01@\x01\x04self\x1d\0v\x04\0\x17[m\ -ethod]cylinder.height\x01\x20\x01@\x02\x04self\x1d\x05valuev\x01\0\x04\0\x1b[met\ -hod]cylinder.set-height\x01!\x04\0\x17[method]cylinder.radius\x01\x20\x04\0\x1b[\ -method]cylinder.set-radius\x01!\x01@\x01\x04self\x1d\0}\x04\0\x1b[method]cylinde\ -r.resolution\x01\"\x01@\x02\x04self\x1d\x05value}\x01\0\x04\0\x1f[method]cylinde\ -r.set-resolution\x01#\x04\0\x19[method]cylinder.segments\x01\"\x04\0\x1d[method]\ -cylinder.set-segments\x01#\x01@\x01\x04self\x1d\0\x17\x04\0\x18[method]cylinder.\ -to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18[method]cylinder.to-node\x01%\x04\ -\0\x20[method]cylinder.to-physics-node\x01%\x01i\x0a\x01@\x01\x04size\x03\0&\x04\ -\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\x04self(\0\x03\x04\0\x13[method\ -]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\x01\0\x04\0\x17[method]cuboid.s\ -et-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[method]cuboid.to-mesh\x01+\x01@\x01\ -\x04self(\0\x19\x04\0\x16[method]cuboid.to-node\x01,\x04\0\x1e[method]cuboid.to-\ -physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\0-\x04\0\x16[static]sphere.new-ic\ -o\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01h\x11\x01@\x01\x04self/\0v\x04\0\x15\ -[method]sphere.radius\x010\x01@\x02\x04self/\x05valuev\x01\0\x04\0\x19[method]sp\ -here.set-radius\x011\x01@\x01\x04self/\0\x10\x04\0\x13[method]sphere.kind\x012\x01\ -@\x02\x04self/\x05value\x10\x01\0\x04\0\x17[method]sphere.set-kind\x013\x01@\x01\ -\x04self/\0\x17\x04\0\x16[method]sphere.to-mesh\x014\x01@\x01\x04self/\0\x19\x04\ -\0\x16[method]sphere.to-node\x015\x04\0\x1e[method]sphere.to-physics-node\x015\x03\ -\x01\x10unavi:shapes/api\x05\x13\x01B\x07\x04\0\x06script\x03\x01\x01i\0\x01@\0\0\ -\x01\x04\0\x13[constructor]script\x01\x02\x01h\0\x01@\x02\x04self\x03\x05deltav\x01\ -\0\x04\0\x15[method]script.update\x01\x04\x04\x01\x12wired:script/types\x05\x14\x04\ -\x01\x1bexample:unavi-shapes/script\x04\0\x0b\x0c\x01\0\x06script\x03\0\0\0G\x09\ -producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-bindgen-rus\ -t\x060.25.0"; +bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0borientation\x03\x06origin\x01\x04\0\x03\ +ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x04\0\x0ainput-data\x03\ +\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\0\x04\0\x0cinput-action\x03\0\x11\x01\ +r\x03\x02idw\x06action\x12\x04data\x10\x04\0\x0binput-event\x03\0\x13\x03\x01\x11\ +wired:input/types\x05\x06\x02\x03\0\x03\x0binput-event\x01B\x0a\x02\x03\x02\x01\x07\ +\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\ +\x04\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\ +\0\x06\x04\0\x1a[method]input-handler.next\x01\x07\x03\x01\x13wired:input/handle\ +r\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\ +\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06\ +cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\ +\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0f\ +rigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constru\ +ctor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider\ +.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.\ +set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[con\ +structor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method\ +]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\0\x1d[met\ +hod]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\x12\x04\ +\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/types\x05\x09\ +\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput-handler\x02\x03\0\0\x09transform\x02\ +\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BE\x02\x03\x02\x01\x0a\x04\ +\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\x02\x03\x02\ +\x01\x0c\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0d\x04\0\x08collider\x03\0\ +\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x0f\x02\x03\0\ +\x06\x04node\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\0\x02\x03\x02\x01\ +\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\x04\0\x05scene\x03\x01\x01i\x05\ +\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.list-scenes\x01\x08\x01h\x05\x01@\x01\ +\x05value\x09\x01\0\x04\0\x16[static]root.add-scene\x01\x0a\x04\0\x19[static]roo\ +t.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[constructor]scene\x01\x0b\x01i\x03\ +\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18[method]scene.list-nodes\x01\x0e\x01\ +@\x01\x04self\x09\0\x0c\x04\0\x19[method]scene.create-node\x01\x0f\x01h\x03\x01@\ +\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16[method]scene.add-node\x01\x11\x04\0\ +\x19[method]scene.remove-node\x01\x11\x01@\x01\x04self\x09\0\x01\x04\0\x17[metho\ +d]scene.transform\x01\x12\x01@\x02\x04self\x09\x05value\x01\x01\0\x04\0\x1b[meth\ +od]scene.set-transform\x01\x13\x01@\x01\x04self\x09\0\x7f\x04\0\x14[method]scene\ +.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\x01\0\x04\0\x18[method]scene.s\ +et-active\x01\x15\x03\x01\x0funavi:scene/api\x05\x11\x02\x03\0\0\x04vec2\x01BY\x02\ +\x03\x02\x01\x12\x04\0\x04vec2\x03\0\0\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\ +\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\x03\x02\x01\x10\x04\0\x04node\x03\ +\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cylinder\x03\x01\x04\0\x06cuboid\x03\x01\ +\x01r\x01\x0csubdivisions}\x04\0\x0asphere-ico\x03\0\x0b\x01r\x02\x07sectors}\x06\ +stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\ +\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\x03\x01\x01i\x08\x01@\x01\x04size\x01\ +\0\x12\x04\0\x16[constructor]rectangle\x01\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\ +\x04\0\x16[method]rectangle.size\x01\x15\x01@\x02\x04self\x14\x05value\x01\x01\0\ +\x04\0\x1a[method]rectangle.set-size\x01\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\ +\x04\0\x19[method]rectangle.to-mesh\x01\x18\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\ +\0\x19[method]rectangle.to-node\x01\x1a\x04\0![method]rectangle.to-physics-node\x01\ +\x1a\x01i\x09\x01@\x02\x06radiusv\x06heightv\0\x1b\x04\0\x15[constructor]cylinde\ +r\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\ +\x01@\x02\x04self\x1d\x05value\x7f\x01\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\ +\x01@\x01\x04self\x1d\0v\x04\0\x17[method]cylinder.height\x01\x20\x01@\x02\x04se\ +lf\x1d\x05valuev\x01\0\x04\0\x1b[method]cylinder.set-height\x01!\x04\0\x17[metho\ +d]cylinder.radius\x01\x20\x04\0\x1b[method]cylinder.set-radius\x01!\x01@\x01\x04\ +self\x1d\0}\x04\0\x1b[method]cylinder.resolution\x01\"\x01@\x02\x04self\x1d\x05v\ +alue}\x01\0\x04\0\x1f[method]cylinder.set-resolution\x01#\x04\0\x19[method]cylin\ +der.segments\x01\"\x04\0\x1d[method]cylinder.set-segments\x01#\x01@\x01\x04self\x1d\ +\0\x17\x04\0\x18[method]cylinder.to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18\ +[method]cylinder.to-node\x01%\x04\0\x20[method]cylinder.to-physics-node\x01%\x01\ +i\x0a\x01@\x01\x04size\x03\0&\x04\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\ +\x04self(\0\x03\x04\0\x13[method]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\ +\x01\0\x04\0\x17[method]cuboid.set-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[m\ +ethod]cuboid.to-mesh\x01+\x01@\x01\x04self(\0\x19\x04\0\x16[method]cuboid.to-nod\ +e\x01,\x04\0\x1e[method]cuboid.to-physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\ +\0-\x04\0\x16[static]sphere.new-ico\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01\ +h\x11\x01@\x01\x04self/\0v\x04\0\x15[method]sphere.radius\x010\x01@\x02\x04self/\ +\x05valuev\x01\0\x04\0\x19[method]sphere.set-radius\x011\x01@\x01\x04self/\0\x10\ +\x04\0\x13[method]sphere.kind\x012\x01@\x02\x04self/\x05value\x10\x01\0\x04\0\x17\ +[method]sphere.set-kind\x013\x01@\x01\x04self/\0\x17\x04\0\x16[method]sphere.to-\ +mesh\x014\x01@\x01\x04self/\0\x19\x04\0\x16[method]sphere.to-node\x015\x04\0\x1e\ +[method]sphere.to-physics-node\x015\x03\x01\x10unavi:shapes/api\x05\x13\x01B\x07\ +\x04\0\x06script\x03\x01\x01i\0\x01@\0\0\x01\x04\0\x13[constructor]script\x01\x02\ +\x01h\0\x01@\x02\x04self\x03\x05deltav\x01\0\x04\0\x15[method]script.update\x01\x04\ +\x04\x01\x12wired:script/types\x05\x14\x04\x01\x1bexample:unavi-shapes/script\x04\ +\0\x0b\x0c\x01\0\x06script\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwi\ +t-component\x070.208.1\x10wit-bindgen-rust\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wasm/example-unavi-ui/src/bindings.rs b/wasm/example-unavi-ui/src/bindings.rs index d3503aa77..19a9fe93f 100644 --- a/wasm/example-unavi-ui/src/bindings.rs +++ b/wasm/example-unavi-ui/src/bindings.rs @@ -1958,6 +1958,33 @@ pub mod unavi { } #[allow(dead_code)] pub mod ui { + #[allow(dead_code, clippy::all)] + pub mod api { + #[used] + #[doc(hidden)] + #[cfg(target_arch = "wasm32")] + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; + use super::super::super::_rt; + #[allow(unused_unsafe, clippy::all)] + pub fn update_ui(delta: f32) { + unsafe { + #[cfg(target_arch = "wasm32")] + #[link(wasm_import_module = "unavi:ui/api")] + extern "C" { + #[link_name = "update-ui"] + fn wit_import(_: f32); + } + + #[cfg(not(target_arch = "wasm32"))] + fn wit_import(_: f32) { + unreachable!() + } + wit_import(_rt::as_f32(&delta)); + } + } + } + #[allow(dead_code, clippy::all)] pub mod button { #[used] @@ -2058,7 +2085,28 @@ pub mod unavi { } impl Button { #[allow(unused_unsafe, clippy::all)] - /// Returns `true` if the button is pressed down this frame. + /// Returns `true` if the button was hovered over this frame. + pub fn hovered(&self) -> bool { + unsafe { + #[cfg(target_arch = "wasm32")] + #[link(wasm_import_module = "unavi:ui/button")] + extern "C" { + #[link_name = "[method]button.hovered"] + fn wit_import(_: i32) -> i32; + } + + #[cfg(not(target_arch = "wasm32"))] + fn wit_import(_: i32) -> i32 { + unreachable!() + } + let ret = wit_import((self).handle() as i32); + _rt::bool_lift(ret as u8) + } + } + } + impl Button { + #[allow(unused_unsafe, clippy::all)] + /// Returns `true` if the button was pressed this frame. pub fn pressed(&self) -> bool { unsafe { #[cfg(target_arch = "wasm32")] @@ -2581,46 +2629,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -2629,20 +2671,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -2726,16 +2765,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -2751,535 +2790,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -3288,72 +3336,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -5969,8 +5986,8 @@ pub(crate) use __export_script_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:script:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 7567] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x92:\x01A\x02\x01A(\x01\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 7615] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xc2:\x01A\x02\x01A*\x01\ B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\0\ \x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01r\ \x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ @@ -6006,121 +6023,122 @@ method]mesh.create-primitive\x01\x1a\x01@\x02\x04self\x12\x05value\x17\x01\0\x04 \0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\x06distal\x07\x08proximal\x07\x0ametac\ arpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\x01r\x09\x04side\x05\x05thumb\x09\x05\ index\x09\x06middle\x09\x04ring\x09\x06little\x09\x04palm\x07\x05wrist\x07\x05el\ -bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06origin\x01\x0borientation\x03\x04\0\x03\ -ray\x03\0\x0d\x01r\x03\x06origin\x01\x0borientation\x03\x06radiusv\x04\0\x03tip\x03\ -\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainp\ -ut-type\x03\0\x11\x01r\x04\x02idw\x05input\x12\x08distancev\x05ordery\x04\0\x0bi\ -nput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x06\x02\x03\0\x03\x0binput\ --event\x01B\x0a\x02\x03\x02\x01\x07\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-\ -handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\x04\ -\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\"[method]input-handler.handl\ -e-input\x01\x07\x03\x01\x13wired:input/handler\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\ -\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\ -\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\ -\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07\ -dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\ -\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04\ -self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05va\ -luev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0fri\ -gid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\ -\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\ -\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[met\ -hod]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\ -\x01\x13wired:physics/types\x05\x09\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput\ --handler\x02\x03\0\0\x09transform\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0arig\ -id-body\x01BE\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\ -\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0d\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x0f\x02\x03\0\x06\x04node\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09\ -transform\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\ -\x04\0\x05scene\x03\x01\x01i\x05\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.lis\ -t-scenes\x01\x08\x01h\x05\x01@\x01\x05value\x09\x01\0\x04\0\x16[static]root.add-\ -scene\x01\x0a\x04\0\x19[static]root.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[\ -constructor]scene\x01\x0b\x01i\x03\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18\ -[method]scene.list-nodes\x01\x0e\x01@\x01\x04self\x09\0\x0c\x04\0\x19[method]sce\ -ne.create-node\x01\x0f\x01h\x03\x01@\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16\ -[method]scene.add-node\x01\x11\x04\0\x19[method]scene.remove-node\x01\x11\x01@\x01\ -\x04self\x09\0\x01\x04\0\x17[method]scene.transform\x01\x12\x01@\x02\x04self\x09\ -\x05value\x01\x01\0\x04\0\x1b[method]scene.set-transform\x01\x13\x01@\x01\x04sel\ -f\x09\0\x7f\x04\0\x14[method]scene.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\ -\x01\0\x04\0\x18[method]scene.set-active\x01\x15\x03\x01\x0funavi:scene/api\x05\x11\ -\x02\x03\0\0\x04vec2\x01BY\x02\x03\x02\x01\x12\x04\0\x04vec2\x03\0\0\x02\x03\x02\ -\x01\x04\x04\0\x04vec3\x03\0\x02\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\ -\x03\x02\x01\x10\x04\0\x04node\x03\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cyl\ -inder\x03\x01\x04\0\x06cuboid\x03\x01\x01r\x01\x0csubdivisions}\x04\0\x0asphere-\ -ico\x03\0\x0b\x01r\x02\x07sectors}\x06stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\ -\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\ -\x03\x01\x01i\x08\x01@\x01\x04size\x01\0\x12\x04\0\x16[constructor]rectangle\x01\ -\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\x04\0\x16[method]rectangle.size\x01\x15\ -\x01@\x02\x04self\x14\x05value\x01\x01\0\x04\0\x1a[method]rectangle.set-size\x01\ -\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\x04\0\x19[method]rectangle.to-mesh\x01\x18\ -\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\0\x19[method]rectangle.to-node\x01\x1a\x04\ -\0![method]rectangle.to-physics-node\x01\x1a\x01i\x09\x01@\x02\x06radiusv\x06hei\ -ghtv\0\x1b\x04\0\x15[constructor]cylinder\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\ -\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\x01@\x02\x04self\x1d\x05value\x7f\x01\ -\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\x01@\x01\x04self\x1d\0v\x04\0\x17[m\ -ethod]cylinder.height\x01\x20\x01@\x02\x04self\x1d\x05valuev\x01\0\x04\0\x1b[met\ -hod]cylinder.set-height\x01!\x04\0\x17[method]cylinder.radius\x01\x20\x04\0\x1b[\ -method]cylinder.set-radius\x01!\x01@\x01\x04self\x1d\0}\x04\0\x1b[method]cylinde\ -r.resolution\x01\"\x01@\x02\x04self\x1d\x05value}\x01\0\x04\0\x1f[method]cylinde\ -r.set-resolution\x01#\x04\0\x19[method]cylinder.segments\x01\"\x04\0\x1d[method]\ -cylinder.set-segments\x01#\x01@\x01\x04self\x1d\0\x17\x04\0\x18[method]cylinder.\ -to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18[method]cylinder.to-node\x01%\x04\ -\0\x20[method]cylinder.to-physics-node\x01%\x01i\x0a\x01@\x01\x04size\x03\0&\x04\ -\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\x04self(\0\x03\x04\0\x13[method\ -]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\x01\0\x04\0\x17[method]cuboid.s\ -et-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[method]cuboid.to-mesh\x01+\x01@\x01\ -\x04self(\0\x19\x04\0\x16[method]cuboid.to-node\x01,\x04\0\x1e[method]cuboid.to-\ -physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\0-\x04\0\x16[static]sphere.new-ic\ -o\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01h\x11\x01@\x01\x04self/\0v\x04\0\x15\ -[method]sphere.radius\x010\x01@\x02\x04self/\x05valuev\x01\0\x04\0\x19[method]sp\ -here.set-radius\x011\x01@\x01\x04self/\0\x10\x04\0\x13[method]sphere.kind\x012\x01\ -@\x02\x04self/\x05value\x10\x01\0\x04\0\x17[method]sphere.set-kind\x013\x01@\x01\ -\x04self/\0\x17\x04\0\x16[method]sphere.to-mesh\x014\x01@\x01\x04self/\0\x19\x04\ -\0\x16[method]sphere.to-node\x015\x04\0\x1e[method]sphere.to-physics-node\x015\x03\ -\x01\x10unavi:shapes/api\x05\x13\x01B\x04\x01m\x04\x05debug\x04info\x04warn\x05e\ -rror\x04\0\x09log-level\x03\0\0\x01@\x02\x05level\x01\x07messages\x01\0\x04\0\x03\ -log\x01\x02\x03\x01\x0dwired:log/api\x05\x14\x01B#\x02\x03\x02\x01\x04\x04\0\x04\ -vec3\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x01m\x03\x06center\x03e\ -nd\x05start\x04\0\x09alignment\x03\0\x04\x04\0\x09container\x03\x01\x01i\x06\x01\ -@\x01\x04size\x01\0\x07\x04\0\x16[constructor]container\x01\x08\x01h\x06\x01@\x01\ -\x04self\x09\0\x07\x04\0\x15[method]container.ref\x01\x0a\x01i\x03\x01@\x01\x04s\ -elf\x09\0\x0b\x04\0\x16[method]container.root\x01\x0c\x04\0\x17[method]container\ -.inner\x01\x0c\x01p\x07\x01@\x01\x04self\x09\0\x0d\x04\0\x1f[method]container.li\ -st-children\x01\x0e\x01@\x02\x04self\x09\x05child\x09\x01\0\x04\0\x1b[method]con\ -tainer.add-child\x01\x0f\x04\0\x1e[method]container.remove-child\x01\x0f\x01@\x01\ -\x04self\x09\0\x01\x04\0\x16[method]container.size\x01\x10\x01@\x02\x04self\x09\x05\ -value\x01\x01\0\x04\0\x1a[method]container.set-size\x01\x11\x01@\x01\x04self\x09\ -\0\x05\x04\0\x19[method]container.align-x\x01\x12\x04\0\x19[method]container.ali\ -gn-y\x01\x12\x04\0\x19[method]container.align-z\x01\x12\x01@\x02\x04self\x09\x05\ -value\x05\x01\0\x04\0\x1d[method]container.set-align-x\x01\x13\x04\0\x1d[method]\ -container.set-align-y\x01\x13\x04\0\x1d[method]container.set-align-z\x01\x13\x03\ -\x01\x16unavi:layout/container\x05\x15\x02\x03\0\x0a\x09container\x01B\x0e\x02\x03\ -\x02\x01\x16\x04\0\x09container\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handl\ -er\x03\0\x02\x04\0\x06button\x03\x01\x01i\x01\x01i\x04\x01@\x01\x04root\x05\0\x06\ -\x04\0\x13[constructor]button\x01\x07\x01h\x04\x01@\x01\x04self\x08\0\x05\x04\0\x13\ -[method]button.root\x01\x09\x01@\x01\x04self\x08\0\x7f\x04\0\x16[method]button.p\ -ressed\x01\x0a\x03\x01\x0funavi:ui/button\x05\x17\x01B(\x02\x03\x02\x01\x16\x04\0\ -\x09container\x03\0\0\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x02\x02\x03\x02\x01\ +bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0borientation\x03\x06origin\x01\x04\0\x03\ +ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x04\0\x0ainput-data\x03\ +\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\0\x04\0\x0cinput-action\x03\0\x11\x01\ +r\x03\x02idw\x06action\x12\x04data\x10\x04\0\x0binput-event\x03\0\x13\x03\x01\x11\ +wired:input/types\x05\x06\x02\x03\0\x03\x0binput-event\x01B\x0a\x02\x03\x02\x01\x07\ +\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\ +\x04\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\ +\0\x06\x04\0\x1a[method]input-handler.next\x01\x07\x03\x01\x13wired:input/handle\ +r\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\ +\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06\ +cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\ +\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0f\ +rigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constru\ +ctor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider\ +.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.\ +set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[con\ +structor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method\ +]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\0\x1d[met\ +hod]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\x12\x04\ +\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/types\x05\x09\ +\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput-handler\x02\x03\0\0\x09transform\x02\ +\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BE\x02\x03\x02\x01\x0a\x04\ +\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\x02\x03\x02\ +\x01\x0c\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0d\x04\0\x08collider\x03\0\ +\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x0f\x02\x03\0\ +\x06\x04node\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\0\x02\x03\x02\x01\ +\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\x04\0\x05scene\x03\x01\x01i\x05\ +\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.list-scenes\x01\x08\x01h\x05\x01@\x01\ +\x05value\x09\x01\0\x04\0\x16[static]root.add-scene\x01\x0a\x04\0\x19[static]roo\ +t.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[constructor]scene\x01\x0b\x01i\x03\ +\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18[method]scene.list-nodes\x01\x0e\x01\ +@\x01\x04self\x09\0\x0c\x04\0\x19[method]scene.create-node\x01\x0f\x01h\x03\x01@\ +\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16[method]scene.add-node\x01\x11\x04\0\ +\x19[method]scene.remove-node\x01\x11\x01@\x01\x04self\x09\0\x01\x04\0\x17[metho\ +d]scene.transform\x01\x12\x01@\x02\x04self\x09\x05value\x01\x01\0\x04\0\x1b[meth\ +od]scene.set-transform\x01\x13\x01@\x01\x04self\x09\0\x7f\x04\0\x14[method]scene\ +.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\x01\0\x04\0\x18[method]scene.s\ +et-active\x01\x15\x03\x01\x0funavi:scene/api\x05\x11\x02\x03\0\0\x04vec2\x01BY\x02\ +\x03\x02\x01\x12\x04\0\x04vec2\x03\0\0\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\ +\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\x03\x02\x01\x10\x04\0\x04node\x03\ +\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cylinder\x03\x01\x04\0\x06cuboid\x03\x01\ +\x01r\x01\x0csubdivisions}\x04\0\x0asphere-ico\x03\0\x0b\x01r\x02\x07sectors}\x06\ +stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\ +\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\x03\x01\x01i\x08\x01@\x01\x04size\x01\ +\0\x12\x04\0\x16[constructor]rectangle\x01\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\ +\x04\0\x16[method]rectangle.size\x01\x15\x01@\x02\x04self\x14\x05value\x01\x01\0\ +\x04\0\x1a[method]rectangle.set-size\x01\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\ +\x04\0\x19[method]rectangle.to-mesh\x01\x18\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\ +\0\x19[method]rectangle.to-node\x01\x1a\x04\0![method]rectangle.to-physics-node\x01\ +\x1a\x01i\x09\x01@\x02\x06radiusv\x06heightv\0\x1b\x04\0\x15[constructor]cylinde\ +r\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\ +\x01@\x02\x04self\x1d\x05value\x7f\x01\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\ +\x01@\x01\x04self\x1d\0v\x04\0\x17[method]cylinder.height\x01\x20\x01@\x02\x04se\ +lf\x1d\x05valuev\x01\0\x04\0\x1b[method]cylinder.set-height\x01!\x04\0\x17[metho\ +d]cylinder.radius\x01\x20\x04\0\x1b[method]cylinder.set-radius\x01!\x01@\x01\x04\ +self\x1d\0}\x04\0\x1b[method]cylinder.resolution\x01\"\x01@\x02\x04self\x1d\x05v\ +alue}\x01\0\x04\0\x1f[method]cylinder.set-resolution\x01#\x04\0\x19[method]cylin\ +der.segments\x01\"\x04\0\x1d[method]cylinder.set-segments\x01#\x01@\x01\x04self\x1d\ +\0\x17\x04\0\x18[method]cylinder.to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18\ +[method]cylinder.to-node\x01%\x04\0\x20[method]cylinder.to-physics-node\x01%\x01\ +i\x0a\x01@\x01\x04size\x03\0&\x04\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\ +\x04self(\0\x03\x04\0\x13[method]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\ +\x01\0\x04\0\x17[method]cuboid.set-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[m\ +ethod]cuboid.to-mesh\x01+\x01@\x01\x04self(\0\x19\x04\0\x16[method]cuboid.to-nod\ +e\x01,\x04\0\x1e[method]cuboid.to-physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\ +\0-\x04\0\x16[static]sphere.new-ico\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01\ +h\x11\x01@\x01\x04self/\0v\x04\0\x15[method]sphere.radius\x010\x01@\x02\x04self/\ +\x05valuev\x01\0\x04\0\x19[method]sphere.set-radius\x011\x01@\x01\x04self/\0\x10\ +\x04\0\x13[method]sphere.kind\x012\x01@\x02\x04self/\x05value\x10\x01\0\x04\0\x17\ +[method]sphere.set-kind\x013\x01@\x01\x04self/\0\x17\x04\0\x16[method]sphere.to-\ +mesh\x014\x01@\x01\x04self/\0\x19\x04\0\x16[method]sphere.to-node\x015\x04\0\x1e\ +[method]sphere.to-physics-node\x015\x03\x01\x10unavi:shapes/api\x05\x13\x01B\x04\ +\x01m\x04\x05debug\x04info\x04warn\x05error\x04\0\x09log-level\x03\0\0\x01@\x02\x05\ +level\x01\x07messages\x01\0\x04\0\x03log\x01\x02\x03\x01\x0dwired:log/api\x05\x14\ +\x01B\x02\x01@\x01\x05deltav\x01\0\x04\0\x09update-ui\x01\0\x03\x01\x0cunavi:ui/\ +api\x05\x15\x01B#\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x02\x03\x02\x01\x10\x04\ +\0\x04node\x03\0\x02\x01m\x03\x06center\x03end\x05start\x04\0\x09alignment\x03\0\ +\x04\x04\0\x09container\x03\x01\x01i\x06\x01@\x01\x04size\x01\0\x07\x04\0\x16[co\ +nstructor]container\x01\x08\x01h\x06\x01@\x01\x04self\x09\0\x07\x04\0\x15[method\ +]container.ref\x01\x0a\x01i\x03\x01@\x01\x04self\x09\0\x0b\x04\0\x16[method]cont\ +ainer.root\x01\x0c\x04\0\x17[method]container.inner\x01\x0c\x01p\x07\x01@\x01\x04\ +self\x09\0\x0d\x04\0\x1f[method]container.list-children\x01\x0e\x01@\x02\x04self\ +\x09\x05child\x09\x01\0\x04\0\x1b[method]container.add-child\x01\x0f\x04\0\x1e[m\ +ethod]container.remove-child\x01\x0f\x01@\x01\x04self\x09\0\x01\x04\0\x16[method\ +]container.size\x01\x10\x01@\x02\x04self\x09\x05value\x01\x01\0\x04\0\x1a[method\ +]container.set-size\x01\x11\x01@\x01\x04self\x09\0\x05\x04\0\x19[method]containe\ +r.align-x\x01\x12\x04\0\x19[method]container.align-y\x01\x12\x04\0\x19[method]co\ +ntainer.align-z\x01\x12\x01@\x02\x04self\x09\x05value\x05\x01\0\x04\0\x1d[method\ +]container.set-align-x\x01\x13\x04\0\x1d[method]container.set-align-y\x01\x13\x04\ +\0\x1d[method]container.set-align-z\x01\x13\x03\x01\x16unavi:layout/container\x05\ +\x16\x02\x03\0\x0b\x09container\x01B\x0f\x02\x03\x02\x01\x17\x04\0\x09container\x03\ +\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\x04\0\x06button\x03\x01\ +\x01i\x01\x01i\x04\x01@\x01\x04root\x05\0\x06\x04\0\x13[constructor]button\x01\x07\ +\x01h\x04\x01@\x01\x04self\x08\0\x05\x04\0\x13[method]button.root\x01\x09\x01@\x01\ +\x04self\x08\0\x7f\x04\0\x16[method]button.hovered\x01\x0a\x04\0\x16[method]butt\ +on.pressed\x01\x0a\x03\x01\x0funavi:ui/button\x05\x18\x01B(\x02\x03\x02\x01\x17\x04\ +\0\x09container\x03\0\0\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x02\x02\x03\x02\x01\ \x10\x04\0\x04node\x03\0\x04\x04\0\x04text\x03\x01\x04\0\x08text-box\x03\x01\x01\ i\x06\x01@\x01\x04texts\0\x08\x04\0\x11[constructor]text\x01\x09\x01h\x06\x01@\x01\ \x04self\x0a\0\x08\x04\0\x10[method]text.ref\x01\x0b\x01p}\x01k\x0c\x01@\x02\x04\ @@ -6133,10 +6151,10 @@ hod]text.set-thickness\x01\x12\x01i\x03\x01@\x01\x04self\x0a\0\x13\x04\0\x11[met hod]text.mesh\x01\x14\x01i\x01\x01i\x07\x01@\x01\x04root\x15\0\x16\x04\0\x15[con\ structor]text-box\x01\x17\x01h\x07\x01@\x01\x04self\x18\0\x15\x04\0\x15[method]t\ ext-box.root\x01\x19\x01@\x01\x04self\x18\0\x08\x04\0\x15[method]text-box.text\x01\ -\x1a\x03\x01\x0dunavi:ui/text\x05\x18\x01B\x07\x04\0\x06script\x03\x01\x01i\0\x01\ +\x1a\x03\x01\x0dunavi:ui/text\x05\x19\x01B\x07\x04\0\x06script\x03\x01\x01i\0\x01\ @\0\0\x01\x04\0\x13[constructor]script\x01\x02\x01h\0\x01@\x02\x04self\x03\x05de\ ltav\x01\0\x04\0\x15[method]script.update\x01\x04\x04\x01\x12wired:script/types\x05\ -\x19\x04\x01\x17example:unavi-ui/script\x04\0\x0b\x0c\x01\0\x06script\x03\0\0\0G\ +\x1a\x04\x01\x17example:unavi-ui/script\x04\0\x0b\x0c\x01\0\x06script\x03\0\0\0G\ \x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-bindgen\ -rust\x060.25.0"; diff --git a/wasm/example-unavi-ui/src/lib.rs b/wasm/example-unavi-ui/src/lib.rs index a1b7febd9..fb176e482 100644 --- a/wasm/example-unavi-ui/src/lib.rs +++ b/wasm/example-unavi-ui/src/lib.rs @@ -6,7 +6,7 @@ use bindings::{ layout::container::{Alignment, Container}, scene::api::{Root, Scene}, shapes::api::Rectangle, - ui::{button::Button, text::TextBox}, + ui::{api::update_ui, button::Button, text::TextBox}, }, wired::{ log::api::{log, LogLevel}, @@ -83,6 +83,8 @@ impl GuestScript for Script { } fn update(&self, delta: f32) { + update_ui(delta); + let time = self.time.get(); self.time.set(time + delta); diff --git a/wasm/example-wired-input/src/bindings.rs b/wasm/example-wired-input/src/bindings.rs index f060a621f..36730c927 100644 --- a/wasm/example-wired-input/src/bindings.rs +++ b/wasm/example-wired-input/src/bindings.rs @@ -1628,46 +1628,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -1676,20 +1670,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -1773,16 +1764,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -1798,535 +1789,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -2335,72 +2335,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -7596,8 +7565,8 @@ pub(crate) use __export_script_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:script:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 9650] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xb5J\x01A\x02\x01A+\x01\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 9625] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x9cJ\x01A\x02\x01A+\x01\ B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\0\ \x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01r\ \x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ @@ -7633,182 +7602,181 @@ method]mesh.create-primitive\x01\x1a\x01@\x02\x04self\x12\x05value\x17\x01\0\x04 \0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\x06distal\x07\x08proximal\x07\x0ametac\ arpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\x01r\x09\x04side\x05\x05thumb\x09\x05\ index\x09\x06middle\x09\x04ring\x09\x06little\x09\x04palm\x07\x05wrist\x07\x05el\ -bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06origin\x01\x0borientation\x03\x04\0\x03\ -ray\x03\0\x0d\x01r\x03\x06origin\x01\x0borientation\x03\x06radiusv\x04\0\x03tip\x03\ -\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainp\ -ut-type\x03\0\x11\x01r\x04\x02idw\x05input\x12\x08distancev\x05ordery\x04\0\x0bi\ -nput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x06\x02\x03\0\x03\x0binput\ --event\x01B\x0a\x02\x03\x02\x01\x07\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-\ -handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\x04\ -\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\"[method]input-handler.handl\ -e-input\x01\x07\x03\x01\x13wired:input/handler\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\ -\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\ -\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\ -\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07\ -dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\ -\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04\ -self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05va\ -luev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0fri\ -gid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\ -\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\ -\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[met\ -hod]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\ -\x01\x13wired:physics/types\x05\x09\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput\ --handler\x02\x03\0\0\x09transform\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0arig\ -id-body\x01BE\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\ -\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0d\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x0f\x02\x03\0\x06\x04node\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09\ -transform\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\ -\x04\0\x05scene\x03\x01\x01i\x05\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.lis\ -t-scenes\x01\x08\x01h\x05\x01@\x01\x05value\x09\x01\0\x04\0\x16[static]root.add-\ -scene\x01\x0a\x04\0\x19[static]root.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[\ -constructor]scene\x01\x0b\x01i\x03\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18\ -[method]scene.list-nodes\x01\x0e\x01@\x01\x04self\x09\0\x0c\x04\0\x19[method]sce\ -ne.create-node\x01\x0f\x01h\x03\x01@\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16\ -[method]scene.add-node\x01\x11\x04\0\x19[method]scene.remove-node\x01\x11\x01@\x01\ -\x04self\x09\0\x01\x04\0\x17[method]scene.transform\x01\x12\x01@\x02\x04self\x09\ -\x05value\x01\x01\0\x04\0\x1b[method]scene.set-transform\x01\x13\x01@\x01\x04sel\ -f\x09\0\x7f\x04\0\x14[method]scene.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\ -\x01\0\x04\0\x18[method]scene.set-active\x01\x15\x03\x01\x0funavi:scene/api\x05\x11\ -\x02\x03\0\0\x04vec2\x01BY\x02\x03\x02\x01\x12\x04\0\x04vec2\x03\0\0\x02\x03\x02\ -\x01\x04\x04\0\x04vec3\x03\0\x02\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\ -\x03\x02\x01\x10\x04\0\x04node\x03\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cyl\ -inder\x03\x01\x04\0\x06cuboid\x03\x01\x01r\x01\x0csubdivisions}\x04\0\x0asphere-\ -ico\x03\0\x0b\x01r\x02\x07sectors}\x06stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\ -\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\ -\x03\x01\x01i\x08\x01@\x01\x04size\x01\0\x12\x04\0\x16[constructor]rectangle\x01\ -\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\x04\0\x16[method]rectangle.size\x01\x15\ -\x01@\x02\x04self\x14\x05value\x01\x01\0\x04\0\x1a[method]rectangle.set-size\x01\ -\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\x04\0\x19[method]rectangle.to-mesh\x01\x18\ -\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\0\x19[method]rectangle.to-node\x01\x1a\x04\ -\0![method]rectangle.to-physics-node\x01\x1a\x01i\x09\x01@\x02\x06radiusv\x06hei\ -ghtv\0\x1b\x04\0\x15[constructor]cylinder\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\ -\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\x01@\x02\x04self\x1d\x05value\x7f\x01\ -\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\x01@\x01\x04self\x1d\0v\x04\0\x17[m\ -ethod]cylinder.height\x01\x20\x01@\x02\x04self\x1d\x05valuev\x01\0\x04\0\x1b[met\ -hod]cylinder.set-height\x01!\x04\0\x17[method]cylinder.radius\x01\x20\x04\0\x1b[\ -method]cylinder.set-radius\x01!\x01@\x01\x04self\x1d\0}\x04\0\x1b[method]cylinde\ -r.resolution\x01\"\x01@\x02\x04self\x1d\x05value}\x01\0\x04\0\x1f[method]cylinde\ -r.set-resolution\x01#\x04\0\x19[method]cylinder.segments\x01\"\x04\0\x1d[method]\ -cylinder.set-segments\x01#\x01@\x01\x04self\x1d\0\x17\x04\0\x18[method]cylinder.\ -to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18[method]cylinder.to-node\x01%\x04\ -\0\x20[method]cylinder.to-physics-node\x01%\x01i\x0a\x01@\x01\x04size\x03\0&\x04\ -\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\x04self(\0\x03\x04\0\x13[method\ -]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\x01\0\x04\0\x17[method]cuboid.s\ -et-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[method]cuboid.to-mesh\x01+\x01@\x01\ -\x04self(\0\x19\x04\0\x16[method]cuboid.to-node\x01,\x04\0\x1e[method]cuboid.to-\ -physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\0-\x04\0\x16[static]sphere.new-ic\ -o\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01h\x11\x01@\x01\x04self/\0v\x04\0\x15\ -[method]sphere.radius\x010\x01@\x02\x04self/\x05valuev\x01\0\x04\0\x19[method]sp\ -here.set-radius\x011\x01@\x01\x04self/\0\x10\x04\0\x13[method]sphere.kind\x012\x01\ -@\x02\x04self/\x05value\x10\x01\0\x04\0\x17[method]sphere.set-kind\x013\x01@\x01\ -\x04self/\0\x17\x04\0\x16[method]sphere.to-mesh\x014\x01@\x01\x04self/\0\x19\x04\ -\0\x16[method]sphere.to-node\x015\x04\0\x1e[method]sphere.to-physics-node\x015\x03\ -\x01\x10unavi:shapes/api\x05\x13\x01B\x04\x01m\x04\x05debug\x04info\x04warn\x05e\ -rror\x04\0\x09log-level\x03\0\0\x01@\x02\x05level\x01\x07messages\x01\0\x04\0\x03\ -log\x01\x02\x03\x01\x0dwired:log/api\x05\x14\x01B\x11\x02\x03\x02\x01\x10\x04\0\x04\ -node\x03\0\0\x01i\x01\x01r\x14\x04hips\x02\x05spine\x02\x05chest\x02\x0bupper-ch\ -est\x02\x04neck\x02\x04head\x02\x0dleft-shoulder\x02\x0eleft-upper-arm\x02\x0ele\ -ft-lower-arm\x02\x09left-hand\x02\x0eright-shoulder\x02\x0fright-upper-arm\x02\x0f\ -right-lower-arm\x02\x0aright-hand\x02\x0eleft-upper-leg\x02\x0eleft-lower-leg\x02\ -\x09left-foot\x02\x0fright-upper-leg\x02\x0fright-lower-leg\x02\x0aright-foot\x02\ -\x04\0\x08skeleton\x03\0\x03\x04\0\x06player\x03\x01\x01h\x05\x01@\x01\x04self\x06\ -\0\x02\x04\0\x13[method]player.root\x01\x07\x01@\x01\x04self\x06\0\x04\x04\0\x17\ -[method]player.skeleton\x01\x08\x01i\x05\x01p\x09\x01@\0\0\x0a\x04\0\x0clist-pla\ -yers\x01\x0b\x01@\0\0\x09\x04\0\x0clocal-player\x01\x0c\x03\x01\x10wired:player/\ -api\x05\x15\x01B\x15\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\0\x04\0\x05scene\x03\ -\x01\x01i\x02\x01@\0\0\x03\x04\0\x12[constructor]scene\x01\x04\x01h\x02\x01@\x01\ -\x04self\x05\0y\x04\0\x10[method]scene.id\x01\x06\x01@\x01\x04self\x05\0s\x04\0\x12\ -[method]scene.name\x01\x07\x01@\x02\x04self\x05\x05values\x01\0\x04\0\x16[method\ -]scene.set-name\x01\x08\x01i\x01\x01p\x09\x01@\x01\x04self\x05\0\x0a\x04\0\x13[m\ -ethod]scene.nodes\x01\x0b\x01h\x01\x01@\x02\x04self\x05\x05value\x0c\x01\0\x04\0\ -\x16[method]scene.add-node\x01\x0d\x04\0\x19[method]scene.remove-node\x01\x0d\x03\ -\x01\x11wired:scene/scene\x05\x16\x02\x03\0\x0b\x05scene\x01B5\x02\x03\x02\x01\x02\ -\x04\0\x08material\x03\0\0\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x02\x02\x03\x02\ -\x01\x10\x04\0\x04node\x03\0\x04\x02\x03\x02\x01\x17\x04\0\x05scene\x03\0\x06\x04\ -\0\x04gltf\x03\x01\x01i\x08\x01@\0\0\x09\x04\0\x11[constructor]gltf\x01\x0a\x01h\ -\x08\x01i\x01\x01p\x0c\x01@\x01\x04self\x0b\0\x0d\x04\0\x1b[method]gltf.list-mat\ -erials\x01\x0e\x01h\x01\x01@\x02\x04self\x0b\x05value\x0f\x01\0\x04\0\x19[method\ -]gltf.add-material\x01\x10\x04\0\x1c[method]gltf.remove-material\x01\x10\x01i\x03\ -\x01p\x11\x01@\x01\x04self\x0b\0\x12\x04\0\x18[method]gltf.list-meshes\x01\x13\x01\ -h\x03\x01@\x02\x04self\x0b\x05value\x14\x01\0\x04\0\x15[method]gltf.add-mesh\x01\ -\x15\x04\0\x18[method]gltf.remove-mesh\x01\x15\x01i\x05\x01p\x16\x01@\x01\x04sel\ -f\x0b\0\x17\x04\0\x17[method]gltf.list-nodes\x01\x18\x01h\x05\x01@\x02\x04self\x0b\ -\x05value\x19\x01\0\x04\0\x15[method]gltf.add-node\x01\x1a\x04\0\x18[method]gltf\ -.remove-node\x01\x1a\x01i\x07\x01p\x1b\x01@\x01\x04self\x0b\0\x1c\x04\0\x18[meth\ -od]gltf.list-scenes\x01\x1d\x01h\x07\x01@\x02\x04self\x0b\x05value\x1e\x01\0\x04\ -\0\x16[method]gltf.add-scene\x01\x1f\x04\0\x19[method]gltf.remove-scene\x01\x1f\x01\ -k\x1b\x01@\x01\x04self\x0b\0\x20\x04\0\x19[method]gltf.active-scene\x01!\x01k\x1e\ -\x01@\x02\x04self\x0b\x05value\"\x01\0\x04\0\x1d[method]gltf.set-active-scene\x01\ -#\x04\0\x1a[method]gltf.default-scene\x01!\x04\0\x1e[method]gltf.set-default-sce\ -ne\x01\x1f\x03\x01\x10wired:scene/gltf\x05\x18\x02\x03\0\x0c\x04gltf\x01Bt\x02\x03\ -\x02\x01\x19\x04\0\x04gltf\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x02\ -\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x04\0\x04glxf\x03\x01\x04\0\x0aass\ -et-gltf\x03\x01\x04\0\x0aasset-glxf\x03\x01\x01i\x07\x01i\x08\x01q\x02\x04gltf\x01\ -\x09\0\x04glxf\x01\x0a\0\x04\0\x05asset\x03\0\x0b\x01h\x07\x01h\x08\x01q\x02\x04\ -gltf\x01\x0d\0\x04glxf\x01\x0e\0\x04\0\x0casset-borrow\x03\0\x0f\x04\0\x09glxf-n\ -ode\x03\x01\x01i\x11\x01p\x12\x01q\x02\x05asset\x01\x0c\0\x05nodes\x01\x13\0\x04\ -\0\x08children\x03\0\x14\x01h\x11\x01p\x16\x01q\x02\x05asset\x01\x10\0\x05nodes\x01\ -\x17\0\x04\0\x0fchildren-borrow\x03\0\x18\x04\0\x0aglxf-scene\x03\x01\x01i\x06\x01\ -@\0\0\x1b\x04\0\x11[constructor]glxf\x01\x1c\x01h\x06\x01p\x0c\x01@\x01\x04self\x1d\ -\0\x1e\x04\0\x18[method]glxf.list-assets\x01\x1f\x01@\x02\x04self\x1d\x05value\x10\ -\x01\0\x04\0\x16[method]glxf.add-asset\x01\x20\x04\0\x19[method]glxf.remove-asse\ -t\x01\x20\x01@\x01\x04self\x1d\0\x13\x04\0\x17[method]glxf.list-nodes\x01!\x01@\x02\ -\x04self\x1d\x05value\x16\x01\0\x04\0\x15[method]glxf.add-node\x01\"\x04\0\x18[m\ -ethod]glxf.remove-node\x01\"\x01i\x1a\x01p#\x01@\x01\x04self\x1d\0$\x04\0\x18[me\ -thod]glxf.list-scenes\x01%\x01h\x1a\x01@\x02\x04self\x1d\x05value&\x01\0\x04\0\x16\ -[method]glxf.add-scene\x01'\x04\0\x19[method]glxf.remove-scene\x01'\x01k#\x01@\x01\ -\x04self\x1d\0(\x04\0\x19[method]glxf.active-scene\x01)\x01k&\x01@\x02\x04self\x1d\ -\x05value*\x01\0\x04\0\x1d[method]glxf.set-active-scene\x01+\x04\0\x1a[method]gl\ -xf.default-scene\x01)\x04\0\x1e[method]glxf.set-default-scene\x01'\x01h\x01\x01@\ -\x01\x08document,\0\x09\x04\0\x17[constructor]asset-gltf\x01-\x01i\x01\x01@\x01\x04\ -self\x0d\0.\x04\0\x1b[method]asset-gltf.document\x01/\x01i\x03\x01p0\x01@\x01\x04\ -self\x0d\01\x04\0\x1d[method]asset-gltf.list-nodes\x012\x01h\x03\x01@\x02\x04sel\ -f\x0d\x05value3\x01\0\x04\0\x1b[method]asset-gltf.add-node\x014\x04\0\x1e[method\ -]asset-gltf.remove-node\x014\x01@\x01\x08document\x1d\0\x0a\x04\0\x17[constructo\ -r]asset-glxf\x015\x01@\x01\x04self\x0e\0\x1b\x04\0\x1b[method]asset-glxf.documen\ -t\x016\x01@\x01\x04self\x0e\0\x13\x04\0\x1d[method]asset-glxf.list-nodes\x017\x01\ -@\x02\x04self\x0e\x05value\x16\x01\0\x04\0\x1b[method]asset-glxf.add-node\x018\x04\ -\0\x1e[method]asset-glxf.remove-node\x018\x01@\0\0\x12\x04\0\x16[constructor]glx\ -f-node\x019\x01@\x01\x04self\x16\0y\x04\0\x14[method]glxf-node.id\x01:\x01@\x01\x04\ -self\x16\0s\x04\0\x16[method]glxf-node.name\x01;\x01@\x02\x04self\x16\x05values\x01\ -\0\x04\0\x1a[method]glxf-node.set-name\x01<\x01@\x01\x04self\x16\0\x05\x04\0\x1b\ -[method]glxf-node.transform\x01=\x01@\x02\x04self\x16\x05value\x05\x01\0\x04\0\x1f\ -[method]glxf-node.set-transform\x01>\x01k\x12\x01@\x01\x04self\x16\0?\x04\0\x18[\ -method]glxf-node.parent\x01@\x01k\x15\x01@\x01\x04self\x16\0\xc1\0\x04\0\x1a[met\ -hod]glxf-node.children\x01B\x01k\x19\x01@\x02\x04self\x16\x05value\xc3\0\x01\0\x04\ -\0\x1e[method]glxf-node.set-children\x01D\x01@\0\0#\x04\0\x17[constructor]glxf-s\ -cene\x01E\x01@\x01\x04self&\0y\x04\0\x15[method]glxf-scene.id\x01F\x01@\x01\x04s\ -elf&\0s\x04\0\x17[method]glxf-scene.name\x01G\x01@\x02\x04self&\x05values\x01\0\x04\ -\0\x1b[method]glxf-scene.set-name\x01H\x01@\x01\x04self&\0\x13\x04\0\x18[method]\ -glxf-scene.nodes\x01I\x01@\x02\x04self&\x04node\x16\x01\0\x04\0\x1b[method]glxf-\ -scene.add-node\x01J\x04\0\x1e[method]glxf-scene.remove-node\x01J\x04\0\x08get-ro\ -ot\x01\x1c\x03\x01\x10wired:scene/glxf\x05\x1a\x01B\x07\x04\0\x06script\x03\x01\x01\ -i\0\x01@\0\0\x01\x04\0\x13[constructor]script\x01\x02\x01h\0\x01@\x02\x04self\x03\ -\x05deltav\x01\0\x04\0\x15[method]script.update\x01\x04\x04\x01\x12wired:script/\ -types\x05\x1b\x04\x01\x1aexample:wired-input/script\x04\0\x0b\x0c\x01\0\x06scrip\ -t\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10\ -wit-bindgen-rust\x060.25.0"; +bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0borientation\x03\x06origin\x01\x04\0\x03\ +ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x04\0\x0ainput-data\x03\ +\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\0\x04\0\x0cinput-action\x03\0\x11\x01\ +r\x03\x02idw\x06action\x12\x04data\x10\x04\0\x0binput-event\x03\0\x13\x03\x01\x11\ +wired:input/types\x05\x06\x02\x03\0\x03\x0binput-event\x01B\x0a\x02\x03\x02\x01\x07\ +\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\ +\x04\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\ +\0\x06\x04\0\x1a[method]input-handler.next\x01\x07\x03\x01\x13wired:input/handle\ +r\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\ +\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06\ +cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\ +\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0f\ +rigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constru\ +ctor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider\ +.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.\ +set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[con\ +structor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method\ +]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\0\x1d[met\ +hod]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\x12\x04\ +\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/types\x05\x09\ +\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput-handler\x02\x03\0\0\x09transform\x02\ +\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BE\x02\x03\x02\x01\x0a\x04\ +\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\x02\x03\x02\ +\x01\x0c\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0d\x04\0\x08collider\x03\0\ +\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x0f\x02\x03\0\ +\x06\x04node\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\0\x02\x03\x02\x01\ +\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\x04\0\x05scene\x03\x01\x01i\x05\ +\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.list-scenes\x01\x08\x01h\x05\x01@\x01\ +\x05value\x09\x01\0\x04\0\x16[static]root.add-scene\x01\x0a\x04\0\x19[static]roo\ +t.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[constructor]scene\x01\x0b\x01i\x03\ +\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18[method]scene.list-nodes\x01\x0e\x01\ +@\x01\x04self\x09\0\x0c\x04\0\x19[method]scene.create-node\x01\x0f\x01h\x03\x01@\ +\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16[method]scene.add-node\x01\x11\x04\0\ +\x19[method]scene.remove-node\x01\x11\x01@\x01\x04self\x09\0\x01\x04\0\x17[metho\ +d]scene.transform\x01\x12\x01@\x02\x04self\x09\x05value\x01\x01\0\x04\0\x1b[meth\ +od]scene.set-transform\x01\x13\x01@\x01\x04self\x09\0\x7f\x04\0\x14[method]scene\ +.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\x01\0\x04\0\x18[method]scene.s\ +et-active\x01\x15\x03\x01\x0funavi:scene/api\x05\x11\x02\x03\0\0\x04vec2\x01BY\x02\ +\x03\x02\x01\x12\x04\0\x04vec2\x03\0\0\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\ +\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\x03\x02\x01\x10\x04\0\x04node\x03\ +\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cylinder\x03\x01\x04\0\x06cuboid\x03\x01\ +\x01r\x01\x0csubdivisions}\x04\0\x0asphere-ico\x03\0\x0b\x01r\x02\x07sectors}\x06\ +stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\ +\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\x03\x01\x01i\x08\x01@\x01\x04size\x01\ +\0\x12\x04\0\x16[constructor]rectangle\x01\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\ +\x04\0\x16[method]rectangle.size\x01\x15\x01@\x02\x04self\x14\x05value\x01\x01\0\ +\x04\0\x1a[method]rectangle.set-size\x01\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\ +\x04\0\x19[method]rectangle.to-mesh\x01\x18\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\ +\0\x19[method]rectangle.to-node\x01\x1a\x04\0![method]rectangle.to-physics-node\x01\ +\x1a\x01i\x09\x01@\x02\x06radiusv\x06heightv\0\x1b\x04\0\x15[constructor]cylinde\ +r\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\ +\x01@\x02\x04self\x1d\x05value\x7f\x01\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\ +\x01@\x01\x04self\x1d\0v\x04\0\x17[method]cylinder.height\x01\x20\x01@\x02\x04se\ +lf\x1d\x05valuev\x01\0\x04\0\x1b[method]cylinder.set-height\x01!\x04\0\x17[metho\ +d]cylinder.radius\x01\x20\x04\0\x1b[method]cylinder.set-radius\x01!\x01@\x01\x04\ +self\x1d\0}\x04\0\x1b[method]cylinder.resolution\x01\"\x01@\x02\x04self\x1d\x05v\ +alue}\x01\0\x04\0\x1f[method]cylinder.set-resolution\x01#\x04\0\x19[method]cylin\ +der.segments\x01\"\x04\0\x1d[method]cylinder.set-segments\x01#\x01@\x01\x04self\x1d\ +\0\x17\x04\0\x18[method]cylinder.to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18\ +[method]cylinder.to-node\x01%\x04\0\x20[method]cylinder.to-physics-node\x01%\x01\ +i\x0a\x01@\x01\x04size\x03\0&\x04\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\ +\x04self(\0\x03\x04\0\x13[method]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\ +\x01\0\x04\0\x17[method]cuboid.set-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[m\ +ethod]cuboid.to-mesh\x01+\x01@\x01\x04self(\0\x19\x04\0\x16[method]cuboid.to-nod\ +e\x01,\x04\0\x1e[method]cuboid.to-physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\ +\0-\x04\0\x16[static]sphere.new-ico\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01\ +h\x11\x01@\x01\x04self/\0v\x04\0\x15[method]sphere.radius\x010\x01@\x02\x04self/\ +\x05valuev\x01\0\x04\0\x19[method]sphere.set-radius\x011\x01@\x01\x04self/\0\x10\ +\x04\0\x13[method]sphere.kind\x012\x01@\x02\x04self/\x05value\x10\x01\0\x04\0\x17\ +[method]sphere.set-kind\x013\x01@\x01\x04self/\0\x17\x04\0\x16[method]sphere.to-\ +mesh\x014\x01@\x01\x04self/\0\x19\x04\0\x16[method]sphere.to-node\x015\x04\0\x1e\ +[method]sphere.to-physics-node\x015\x03\x01\x10unavi:shapes/api\x05\x13\x01B\x04\ +\x01m\x04\x05debug\x04info\x04warn\x05error\x04\0\x09log-level\x03\0\0\x01@\x02\x05\ +level\x01\x07messages\x01\0\x04\0\x03log\x01\x02\x03\x01\x0dwired:log/api\x05\x14\ +\x01B\x11\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\0\x01i\x01\x01r\x14\x04hips\x02\ +\x05spine\x02\x05chest\x02\x0bupper-chest\x02\x04neck\x02\x04head\x02\x0dleft-sh\ +oulder\x02\x0eleft-upper-arm\x02\x0eleft-lower-arm\x02\x09left-hand\x02\x0eright\ +-shoulder\x02\x0fright-upper-arm\x02\x0fright-lower-arm\x02\x0aright-hand\x02\x0e\ +left-upper-leg\x02\x0eleft-lower-leg\x02\x09left-foot\x02\x0fright-upper-leg\x02\ +\x0fright-lower-leg\x02\x0aright-foot\x02\x04\0\x08skeleton\x03\0\x03\x04\0\x06p\ +layer\x03\x01\x01h\x05\x01@\x01\x04self\x06\0\x02\x04\0\x13[method]player.root\x01\ +\x07\x01@\x01\x04self\x06\0\x04\x04\0\x17[method]player.skeleton\x01\x08\x01i\x05\ +\x01p\x09\x01@\0\0\x0a\x04\0\x0clist-players\x01\x0b\x01@\0\0\x09\x04\0\x0clocal\ +-player\x01\x0c\x03\x01\x10wired:player/api\x05\x15\x01B\x15\x02\x03\x02\x01\x10\ +\x04\0\x04node\x03\0\0\x04\0\x05scene\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x12[co\ +nstructor]scene\x01\x04\x01h\x02\x01@\x01\x04self\x05\0y\x04\0\x10[method]scene.\ +id\x01\x06\x01@\x01\x04self\x05\0s\x04\0\x12[method]scene.name\x01\x07\x01@\x02\x04\ +self\x05\x05values\x01\0\x04\0\x16[method]scene.set-name\x01\x08\x01i\x01\x01p\x09\ +\x01@\x01\x04self\x05\0\x0a\x04\0\x13[method]scene.nodes\x01\x0b\x01h\x01\x01@\x02\ +\x04self\x05\x05value\x0c\x01\0\x04\0\x16[method]scene.add-node\x01\x0d\x04\0\x19\ +[method]scene.remove-node\x01\x0d\x03\x01\x11wired:scene/scene\x05\x16\x02\x03\0\ +\x0b\x05scene\x01B5\x02\x03\x02\x01\x02\x04\0\x08material\x03\0\0\x02\x03\x02\x01\ +\x0a\x04\0\x04mesh\x03\0\x02\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x04\x02\x03\ +\x02\x01\x17\x04\0\x05scene\x03\0\x06\x04\0\x04gltf\x03\x01\x01i\x08\x01@\0\0\x09\ +\x04\0\x11[constructor]gltf\x01\x0a\x01h\x08\x01i\x01\x01p\x0c\x01@\x01\x04self\x0b\ +\0\x0d\x04\0\x1b[method]gltf.list-materials\x01\x0e\x01h\x01\x01@\x02\x04self\x0b\ +\x05value\x0f\x01\0\x04\0\x19[method]gltf.add-material\x01\x10\x04\0\x1c[method]\ +gltf.remove-material\x01\x10\x01i\x03\x01p\x11\x01@\x01\x04self\x0b\0\x12\x04\0\x18\ +[method]gltf.list-meshes\x01\x13\x01h\x03\x01@\x02\x04self\x0b\x05value\x14\x01\0\ +\x04\0\x15[method]gltf.add-mesh\x01\x15\x04\0\x18[method]gltf.remove-mesh\x01\x15\ +\x01i\x05\x01p\x16\x01@\x01\x04self\x0b\0\x17\x04\0\x17[method]gltf.list-nodes\x01\ +\x18\x01h\x05\x01@\x02\x04self\x0b\x05value\x19\x01\0\x04\0\x15[method]gltf.add-\ +node\x01\x1a\x04\0\x18[method]gltf.remove-node\x01\x1a\x01i\x07\x01p\x1b\x01@\x01\ +\x04self\x0b\0\x1c\x04\0\x18[method]gltf.list-scenes\x01\x1d\x01h\x07\x01@\x02\x04\ +self\x0b\x05value\x1e\x01\0\x04\0\x16[method]gltf.add-scene\x01\x1f\x04\0\x19[me\ +thod]gltf.remove-scene\x01\x1f\x01k\x1b\x01@\x01\x04self\x0b\0\x20\x04\0\x19[met\ +hod]gltf.active-scene\x01!\x01k\x1e\x01@\x02\x04self\x0b\x05value\"\x01\0\x04\0\x1d\ +[method]gltf.set-active-scene\x01#\x04\0\x1a[method]gltf.default-scene\x01!\x04\0\ +\x1e[method]gltf.set-default-scene\x01\x1f\x03\x01\x10wired:scene/gltf\x05\x18\x02\ +\x03\0\x0c\x04gltf\x01Bt\x02\x03\x02\x01\x19\x04\0\x04gltf\x03\0\0\x02\x03\x02\x01\ +\x10\x04\0\x04node\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x04\ +\0\x04glxf\x03\x01\x04\0\x0aasset-gltf\x03\x01\x04\0\x0aasset-glxf\x03\x01\x01i\x07\ +\x01i\x08\x01q\x02\x04gltf\x01\x09\0\x04glxf\x01\x0a\0\x04\0\x05asset\x03\0\x0b\x01\ +h\x07\x01h\x08\x01q\x02\x04gltf\x01\x0d\0\x04glxf\x01\x0e\0\x04\0\x0casset-borro\ +w\x03\0\x0f\x04\0\x09glxf-node\x03\x01\x01i\x11\x01p\x12\x01q\x02\x05asset\x01\x0c\ +\0\x05nodes\x01\x13\0\x04\0\x08children\x03\0\x14\x01h\x11\x01p\x16\x01q\x02\x05\ +asset\x01\x10\0\x05nodes\x01\x17\0\x04\0\x0fchildren-borrow\x03\0\x18\x04\0\x0ag\ +lxf-scene\x03\x01\x01i\x06\x01@\0\0\x1b\x04\0\x11[constructor]glxf\x01\x1c\x01h\x06\ +\x01p\x0c\x01@\x01\x04self\x1d\0\x1e\x04\0\x18[method]glxf.list-assets\x01\x1f\x01\ +@\x02\x04self\x1d\x05value\x10\x01\0\x04\0\x16[method]glxf.add-asset\x01\x20\x04\ +\0\x19[method]glxf.remove-asset\x01\x20\x01@\x01\x04self\x1d\0\x13\x04\0\x17[met\ +hod]glxf.list-nodes\x01!\x01@\x02\x04self\x1d\x05value\x16\x01\0\x04\0\x15[metho\ +d]glxf.add-node\x01\"\x04\0\x18[method]glxf.remove-node\x01\"\x01i\x1a\x01p#\x01\ +@\x01\x04self\x1d\0$\x04\0\x18[method]glxf.list-scenes\x01%\x01h\x1a\x01@\x02\x04\ +self\x1d\x05value&\x01\0\x04\0\x16[method]glxf.add-scene\x01'\x04\0\x19[method]g\ +lxf.remove-scene\x01'\x01k#\x01@\x01\x04self\x1d\0(\x04\0\x19[method]glxf.active\ +-scene\x01)\x01k&\x01@\x02\x04self\x1d\x05value*\x01\0\x04\0\x1d[method]glxf.set\ +-active-scene\x01+\x04\0\x1a[method]glxf.default-scene\x01)\x04\0\x1e[method]glx\ +f.set-default-scene\x01'\x01h\x01\x01@\x01\x08document,\0\x09\x04\0\x17[construc\ +tor]asset-gltf\x01-\x01i\x01\x01@\x01\x04self\x0d\0.\x04\0\x1b[method]asset-gltf\ +.document\x01/\x01i\x03\x01p0\x01@\x01\x04self\x0d\01\x04\0\x1d[method]asset-glt\ +f.list-nodes\x012\x01h\x03\x01@\x02\x04self\x0d\x05value3\x01\0\x04\0\x1b[method\ +]asset-gltf.add-node\x014\x04\0\x1e[method]asset-gltf.remove-node\x014\x01@\x01\x08\ +document\x1d\0\x0a\x04\0\x17[constructor]asset-glxf\x015\x01@\x01\x04self\x0e\0\x1b\ +\x04\0\x1b[method]asset-glxf.document\x016\x01@\x01\x04self\x0e\0\x13\x04\0\x1d[\ +method]asset-glxf.list-nodes\x017\x01@\x02\x04self\x0e\x05value\x16\x01\0\x04\0\x1b\ +[method]asset-glxf.add-node\x018\x04\0\x1e[method]asset-glxf.remove-node\x018\x01\ +@\0\0\x12\x04\0\x16[constructor]glxf-node\x019\x01@\x01\x04self\x16\0y\x04\0\x14\ +[method]glxf-node.id\x01:\x01@\x01\x04self\x16\0s\x04\0\x16[method]glxf-node.nam\ +e\x01;\x01@\x02\x04self\x16\x05values\x01\0\x04\0\x1a[method]glxf-node.set-name\x01\ +<\x01@\x01\x04self\x16\0\x05\x04\0\x1b[method]glxf-node.transform\x01=\x01@\x02\x04\ +self\x16\x05value\x05\x01\0\x04\0\x1f[method]glxf-node.set-transform\x01>\x01k\x12\ +\x01@\x01\x04self\x16\0?\x04\0\x18[method]glxf-node.parent\x01@\x01k\x15\x01@\x01\ +\x04self\x16\0\xc1\0\x04\0\x1a[method]glxf-node.children\x01B\x01k\x19\x01@\x02\x04\ +self\x16\x05value\xc3\0\x01\0\x04\0\x1e[method]glxf-node.set-children\x01D\x01@\0\ +\0#\x04\0\x17[constructor]glxf-scene\x01E\x01@\x01\x04self&\0y\x04\0\x15[method]\ +glxf-scene.id\x01F\x01@\x01\x04self&\0s\x04\0\x17[method]glxf-scene.name\x01G\x01\ +@\x02\x04self&\x05values\x01\0\x04\0\x1b[method]glxf-scene.set-name\x01H\x01@\x01\ +\x04self&\0\x13\x04\0\x18[method]glxf-scene.nodes\x01I\x01@\x02\x04self&\x04node\ +\x16\x01\0\x04\0\x1b[method]glxf-scene.add-node\x01J\x04\0\x1e[method]glxf-scene\ +.remove-node\x01J\x04\0\x08get-root\x01\x1c\x03\x01\x10wired:scene/glxf\x05\x1a\x01\ +B\x07\x04\0\x06script\x03\x01\x01i\0\x01@\0\0\x01\x04\0\x13[constructor]script\x01\ +\x02\x01h\0\x01@\x02\x04self\x03\x05deltav\x01\0\x04\0\x15[method]script.update\x01\ +\x04\x04\x01\x12wired:script/types\x05\x1b\x04\x01\x1aexample:wired-input/script\ +\x04\0\x0b\x0c\x01\0\x06script\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0d\ +wit-component\x070.208.1\x10wit-bindgen-rust\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wasm/example-wired-input/src/lib.rs b/wasm/example-wired-input/src/lib.rs index 2e70989e0..a12ff3698 100644 --- a/wasm/example-wired-input/src/lib.rs +++ b/wasm/example-wired-input/src/lib.rs @@ -18,7 +18,7 @@ mod bindings; mod wired_math_impls; struct Script { - handler: InputHandler, + input: InputHandler, material: Material, } @@ -36,16 +36,16 @@ impl GuestScript for Script { primitive.set_material(Some(&material)); } - let handler = InputHandler::new(); - node.set_input_handler(Some(&handler)); + let input = InputHandler::new(); + node.set_input_handler(Some(&input)); Root::add_scene(&scene); - Script { handler, material } + Script { input, material } } fn update(&self, _delta: f32) { - while let Some(event) = self.handler.handle_input() { + while let Some(event) = self.input.next() { log(LogLevel::Info, &format!("Got input: {:?}", event)); let mut rng = rand::thread_rng(); diff --git a/wasm/example-wired-physics/src/bindings.rs b/wasm/example-wired-physics/src/bindings.rs index 62a3ed92b..7c9b93cae 100644 --- a/wasm/example-wired-physics/src/bindings.rs +++ b/wasm/example-wired-physics/src/bindings.rs @@ -1628,46 +1628,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -1676,20 +1670,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -1773,16 +1764,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -1798,535 +1789,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -2335,72 +2335,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -7596,8 +7565,8 @@ pub(crate) use __export_script_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:script:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 9652] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xb7J\x01A\x02\x01A+\x01\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 9627] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x9eJ\x01A\x02\x01A+\x01\ B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\0\ \x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01r\ \x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ @@ -7633,182 +7602,181 @@ method]mesh.create-primitive\x01\x1a\x01@\x02\x04self\x12\x05value\x17\x01\0\x04 \0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\x06distal\x07\x08proximal\x07\x0ametac\ arpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\x01r\x09\x04side\x05\x05thumb\x09\x05\ index\x09\x06middle\x09\x04ring\x09\x06little\x09\x04palm\x07\x05wrist\x07\x05el\ -bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06origin\x01\x0borientation\x03\x04\0\x03\ -ray\x03\0\x0d\x01r\x03\x06origin\x01\x0borientation\x03\x06radiusv\x04\0\x03tip\x03\ -\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainp\ -ut-type\x03\0\x11\x01r\x04\x02idw\x05input\x12\x08distancev\x05ordery\x04\0\x0bi\ -nput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x06\x02\x03\0\x03\x0binput\ --event\x01B\x0a\x02\x03\x02\x01\x07\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-\ -handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\x04\ -\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\"[method]input-handler.handl\ -e-input\x01\x07\x03\x01\x13wired:input/handler\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\ -\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\ -\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\ -\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07\ -dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\ -\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04\ -self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05va\ -luev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0fri\ -gid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\ -\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\ -\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[met\ -hod]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\ -\x01\x13wired:physics/types\x05\x09\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput\ --handler\x02\x03\0\0\x09transform\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0arig\ -id-body\x01BE\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\ -\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0d\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x0f\x02\x03\0\x06\x04node\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09\ -transform\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\ -\x04\0\x05scene\x03\x01\x01i\x05\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.lis\ -t-scenes\x01\x08\x01h\x05\x01@\x01\x05value\x09\x01\0\x04\0\x16[static]root.add-\ -scene\x01\x0a\x04\0\x19[static]root.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[\ -constructor]scene\x01\x0b\x01i\x03\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18\ -[method]scene.list-nodes\x01\x0e\x01@\x01\x04self\x09\0\x0c\x04\0\x19[method]sce\ -ne.create-node\x01\x0f\x01h\x03\x01@\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16\ -[method]scene.add-node\x01\x11\x04\0\x19[method]scene.remove-node\x01\x11\x01@\x01\ -\x04self\x09\0\x01\x04\0\x17[method]scene.transform\x01\x12\x01@\x02\x04self\x09\ -\x05value\x01\x01\0\x04\0\x1b[method]scene.set-transform\x01\x13\x01@\x01\x04sel\ -f\x09\0\x7f\x04\0\x14[method]scene.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\ -\x01\0\x04\0\x18[method]scene.set-active\x01\x15\x03\x01\x0funavi:scene/api\x05\x11\ -\x02\x03\0\0\x04vec2\x01BY\x02\x03\x02\x01\x12\x04\0\x04vec2\x03\0\0\x02\x03\x02\ -\x01\x04\x04\0\x04vec3\x03\0\x02\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\ -\x03\x02\x01\x10\x04\0\x04node\x03\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cyl\ -inder\x03\x01\x04\0\x06cuboid\x03\x01\x01r\x01\x0csubdivisions}\x04\0\x0asphere-\ -ico\x03\0\x0b\x01r\x02\x07sectors}\x06stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\ -\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\ -\x03\x01\x01i\x08\x01@\x01\x04size\x01\0\x12\x04\0\x16[constructor]rectangle\x01\ -\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\x04\0\x16[method]rectangle.size\x01\x15\ -\x01@\x02\x04self\x14\x05value\x01\x01\0\x04\0\x1a[method]rectangle.set-size\x01\ -\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\x04\0\x19[method]rectangle.to-mesh\x01\x18\ -\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\0\x19[method]rectangle.to-node\x01\x1a\x04\ -\0![method]rectangle.to-physics-node\x01\x1a\x01i\x09\x01@\x02\x06radiusv\x06hei\ -ghtv\0\x1b\x04\0\x15[constructor]cylinder\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\ -\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\x01@\x02\x04self\x1d\x05value\x7f\x01\ -\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\x01@\x01\x04self\x1d\0v\x04\0\x17[m\ -ethod]cylinder.height\x01\x20\x01@\x02\x04self\x1d\x05valuev\x01\0\x04\0\x1b[met\ -hod]cylinder.set-height\x01!\x04\0\x17[method]cylinder.radius\x01\x20\x04\0\x1b[\ -method]cylinder.set-radius\x01!\x01@\x01\x04self\x1d\0}\x04\0\x1b[method]cylinde\ -r.resolution\x01\"\x01@\x02\x04self\x1d\x05value}\x01\0\x04\0\x1f[method]cylinde\ -r.set-resolution\x01#\x04\0\x19[method]cylinder.segments\x01\"\x04\0\x1d[method]\ -cylinder.set-segments\x01#\x01@\x01\x04self\x1d\0\x17\x04\0\x18[method]cylinder.\ -to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18[method]cylinder.to-node\x01%\x04\ -\0\x20[method]cylinder.to-physics-node\x01%\x01i\x0a\x01@\x01\x04size\x03\0&\x04\ -\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\x04self(\0\x03\x04\0\x13[method\ -]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\x01\0\x04\0\x17[method]cuboid.s\ -et-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[method]cuboid.to-mesh\x01+\x01@\x01\ -\x04self(\0\x19\x04\0\x16[method]cuboid.to-node\x01,\x04\0\x1e[method]cuboid.to-\ -physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\0-\x04\0\x16[static]sphere.new-ic\ -o\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01h\x11\x01@\x01\x04self/\0v\x04\0\x15\ -[method]sphere.radius\x010\x01@\x02\x04self/\x05valuev\x01\0\x04\0\x19[method]sp\ -here.set-radius\x011\x01@\x01\x04self/\0\x10\x04\0\x13[method]sphere.kind\x012\x01\ -@\x02\x04self/\x05value\x10\x01\0\x04\0\x17[method]sphere.set-kind\x013\x01@\x01\ -\x04self/\0\x17\x04\0\x16[method]sphere.to-mesh\x014\x01@\x01\x04self/\0\x19\x04\ -\0\x16[method]sphere.to-node\x015\x04\0\x1e[method]sphere.to-physics-node\x015\x03\ -\x01\x10unavi:shapes/api\x05\x13\x01B\x04\x01m\x04\x05debug\x04info\x04warn\x05e\ -rror\x04\0\x09log-level\x03\0\0\x01@\x02\x05level\x01\x07messages\x01\0\x04\0\x03\ -log\x01\x02\x03\x01\x0dwired:log/api\x05\x14\x01B\x11\x02\x03\x02\x01\x10\x04\0\x04\ -node\x03\0\0\x01i\x01\x01r\x14\x04hips\x02\x05spine\x02\x05chest\x02\x0bupper-ch\ -est\x02\x04neck\x02\x04head\x02\x0dleft-shoulder\x02\x0eleft-upper-arm\x02\x0ele\ -ft-lower-arm\x02\x09left-hand\x02\x0eright-shoulder\x02\x0fright-upper-arm\x02\x0f\ -right-lower-arm\x02\x0aright-hand\x02\x0eleft-upper-leg\x02\x0eleft-lower-leg\x02\ -\x09left-foot\x02\x0fright-upper-leg\x02\x0fright-lower-leg\x02\x0aright-foot\x02\ -\x04\0\x08skeleton\x03\0\x03\x04\0\x06player\x03\x01\x01h\x05\x01@\x01\x04self\x06\ -\0\x02\x04\0\x13[method]player.root\x01\x07\x01@\x01\x04self\x06\0\x04\x04\0\x17\ -[method]player.skeleton\x01\x08\x01i\x05\x01p\x09\x01@\0\0\x0a\x04\0\x0clist-pla\ -yers\x01\x0b\x01@\0\0\x09\x04\0\x0clocal-player\x01\x0c\x03\x01\x10wired:player/\ -api\x05\x15\x01B\x15\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\0\x04\0\x05scene\x03\ -\x01\x01i\x02\x01@\0\0\x03\x04\0\x12[constructor]scene\x01\x04\x01h\x02\x01@\x01\ -\x04self\x05\0y\x04\0\x10[method]scene.id\x01\x06\x01@\x01\x04self\x05\0s\x04\0\x12\ -[method]scene.name\x01\x07\x01@\x02\x04self\x05\x05values\x01\0\x04\0\x16[method\ -]scene.set-name\x01\x08\x01i\x01\x01p\x09\x01@\x01\x04self\x05\0\x0a\x04\0\x13[m\ -ethod]scene.nodes\x01\x0b\x01h\x01\x01@\x02\x04self\x05\x05value\x0c\x01\0\x04\0\ -\x16[method]scene.add-node\x01\x0d\x04\0\x19[method]scene.remove-node\x01\x0d\x03\ -\x01\x11wired:scene/scene\x05\x16\x02\x03\0\x0b\x05scene\x01B5\x02\x03\x02\x01\x02\ -\x04\0\x08material\x03\0\0\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x02\x02\x03\x02\ -\x01\x10\x04\0\x04node\x03\0\x04\x02\x03\x02\x01\x17\x04\0\x05scene\x03\0\x06\x04\ -\0\x04gltf\x03\x01\x01i\x08\x01@\0\0\x09\x04\0\x11[constructor]gltf\x01\x0a\x01h\ -\x08\x01i\x01\x01p\x0c\x01@\x01\x04self\x0b\0\x0d\x04\0\x1b[method]gltf.list-mat\ -erials\x01\x0e\x01h\x01\x01@\x02\x04self\x0b\x05value\x0f\x01\0\x04\0\x19[method\ -]gltf.add-material\x01\x10\x04\0\x1c[method]gltf.remove-material\x01\x10\x01i\x03\ -\x01p\x11\x01@\x01\x04self\x0b\0\x12\x04\0\x18[method]gltf.list-meshes\x01\x13\x01\ -h\x03\x01@\x02\x04self\x0b\x05value\x14\x01\0\x04\0\x15[method]gltf.add-mesh\x01\ -\x15\x04\0\x18[method]gltf.remove-mesh\x01\x15\x01i\x05\x01p\x16\x01@\x01\x04sel\ -f\x0b\0\x17\x04\0\x17[method]gltf.list-nodes\x01\x18\x01h\x05\x01@\x02\x04self\x0b\ -\x05value\x19\x01\0\x04\0\x15[method]gltf.add-node\x01\x1a\x04\0\x18[method]gltf\ -.remove-node\x01\x1a\x01i\x07\x01p\x1b\x01@\x01\x04self\x0b\0\x1c\x04\0\x18[meth\ -od]gltf.list-scenes\x01\x1d\x01h\x07\x01@\x02\x04self\x0b\x05value\x1e\x01\0\x04\ -\0\x16[method]gltf.add-scene\x01\x1f\x04\0\x19[method]gltf.remove-scene\x01\x1f\x01\ -k\x1b\x01@\x01\x04self\x0b\0\x20\x04\0\x19[method]gltf.active-scene\x01!\x01k\x1e\ -\x01@\x02\x04self\x0b\x05value\"\x01\0\x04\0\x1d[method]gltf.set-active-scene\x01\ -#\x04\0\x1a[method]gltf.default-scene\x01!\x04\0\x1e[method]gltf.set-default-sce\ -ne\x01\x1f\x03\x01\x10wired:scene/gltf\x05\x18\x02\x03\0\x0c\x04gltf\x01Bt\x02\x03\ -\x02\x01\x19\x04\0\x04gltf\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x02\ -\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x04\0\x04glxf\x03\x01\x04\0\x0aass\ -et-gltf\x03\x01\x04\0\x0aasset-glxf\x03\x01\x01i\x07\x01i\x08\x01q\x02\x04gltf\x01\ -\x09\0\x04glxf\x01\x0a\0\x04\0\x05asset\x03\0\x0b\x01h\x07\x01h\x08\x01q\x02\x04\ -gltf\x01\x0d\0\x04glxf\x01\x0e\0\x04\0\x0casset-borrow\x03\0\x0f\x04\0\x09glxf-n\ -ode\x03\x01\x01i\x11\x01p\x12\x01q\x02\x05asset\x01\x0c\0\x05nodes\x01\x13\0\x04\ -\0\x08children\x03\0\x14\x01h\x11\x01p\x16\x01q\x02\x05asset\x01\x10\0\x05nodes\x01\ -\x17\0\x04\0\x0fchildren-borrow\x03\0\x18\x04\0\x0aglxf-scene\x03\x01\x01i\x06\x01\ -@\0\0\x1b\x04\0\x11[constructor]glxf\x01\x1c\x01h\x06\x01p\x0c\x01@\x01\x04self\x1d\ -\0\x1e\x04\0\x18[method]glxf.list-assets\x01\x1f\x01@\x02\x04self\x1d\x05value\x10\ -\x01\0\x04\0\x16[method]glxf.add-asset\x01\x20\x04\0\x19[method]glxf.remove-asse\ -t\x01\x20\x01@\x01\x04self\x1d\0\x13\x04\0\x17[method]glxf.list-nodes\x01!\x01@\x02\ -\x04self\x1d\x05value\x16\x01\0\x04\0\x15[method]glxf.add-node\x01\"\x04\0\x18[m\ -ethod]glxf.remove-node\x01\"\x01i\x1a\x01p#\x01@\x01\x04self\x1d\0$\x04\0\x18[me\ -thod]glxf.list-scenes\x01%\x01h\x1a\x01@\x02\x04self\x1d\x05value&\x01\0\x04\0\x16\ -[method]glxf.add-scene\x01'\x04\0\x19[method]glxf.remove-scene\x01'\x01k#\x01@\x01\ -\x04self\x1d\0(\x04\0\x19[method]glxf.active-scene\x01)\x01k&\x01@\x02\x04self\x1d\ -\x05value*\x01\0\x04\0\x1d[method]glxf.set-active-scene\x01+\x04\0\x1a[method]gl\ -xf.default-scene\x01)\x04\0\x1e[method]glxf.set-default-scene\x01'\x01h\x01\x01@\ -\x01\x08document,\0\x09\x04\0\x17[constructor]asset-gltf\x01-\x01i\x01\x01@\x01\x04\ -self\x0d\0.\x04\0\x1b[method]asset-gltf.document\x01/\x01i\x03\x01p0\x01@\x01\x04\ -self\x0d\01\x04\0\x1d[method]asset-gltf.list-nodes\x012\x01h\x03\x01@\x02\x04sel\ -f\x0d\x05value3\x01\0\x04\0\x1b[method]asset-gltf.add-node\x014\x04\0\x1e[method\ -]asset-gltf.remove-node\x014\x01@\x01\x08document\x1d\0\x0a\x04\0\x17[constructo\ -r]asset-glxf\x015\x01@\x01\x04self\x0e\0\x1b\x04\0\x1b[method]asset-glxf.documen\ -t\x016\x01@\x01\x04self\x0e\0\x13\x04\0\x1d[method]asset-glxf.list-nodes\x017\x01\ -@\x02\x04self\x0e\x05value\x16\x01\0\x04\0\x1b[method]asset-glxf.add-node\x018\x04\ -\0\x1e[method]asset-glxf.remove-node\x018\x01@\0\0\x12\x04\0\x16[constructor]glx\ -f-node\x019\x01@\x01\x04self\x16\0y\x04\0\x14[method]glxf-node.id\x01:\x01@\x01\x04\ -self\x16\0s\x04\0\x16[method]glxf-node.name\x01;\x01@\x02\x04self\x16\x05values\x01\ -\0\x04\0\x1a[method]glxf-node.set-name\x01<\x01@\x01\x04self\x16\0\x05\x04\0\x1b\ -[method]glxf-node.transform\x01=\x01@\x02\x04self\x16\x05value\x05\x01\0\x04\0\x1f\ -[method]glxf-node.set-transform\x01>\x01k\x12\x01@\x01\x04self\x16\0?\x04\0\x18[\ -method]glxf-node.parent\x01@\x01k\x15\x01@\x01\x04self\x16\0\xc1\0\x04\0\x1a[met\ -hod]glxf-node.children\x01B\x01k\x19\x01@\x02\x04self\x16\x05value\xc3\0\x01\0\x04\ -\0\x1e[method]glxf-node.set-children\x01D\x01@\0\0#\x04\0\x17[constructor]glxf-s\ -cene\x01E\x01@\x01\x04self&\0y\x04\0\x15[method]glxf-scene.id\x01F\x01@\x01\x04s\ -elf&\0s\x04\0\x17[method]glxf-scene.name\x01G\x01@\x02\x04self&\x05values\x01\0\x04\ -\0\x1b[method]glxf-scene.set-name\x01H\x01@\x01\x04self&\0\x13\x04\0\x18[method]\ -glxf-scene.nodes\x01I\x01@\x02\x04self&\x04node\x16\x01\0\x04\0\x1b[method]glxf-\ -scene.add-node\x01J\x04\0\x1e[method]glxf-scene.remove-node\x01J\x04\0\x08get-ro\ -ot\x01\x1c\x03\x01\x10wired:scene/glxf\x05\x1a\x01B\x07\x04\0\x06script\x03\x01\x01\ -i\0\x01@\0\0\x01\x04\0\x13[constructor]script\x01\x02\x01h\0\x01@\x02\x04self\x03\ -\x05deltav\x01\0\x04\0\x15[method]script.update\x01\x04\x04\x01\x12wired:script/\ -types\x05\x1b\x04\x01\x1cexample:wired-physics/script\x04\0\x0b\x0c\x01\0\x06scr\ -ipt\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10\ -wit-bindgen-rust\x060.25.0"; +bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0borientation\x03\x06origin\x01\x04\0\x03\ +ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x04\0\x0ainput-data\x03\ +\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\0\x04\0\x0cinput-action\x03\0\x11\x01\ +r\x03\x02idw\x06action\x12\x04data\x10\x04\0\x0binput-event\x03\0\x13\x03\x01\x11\ +wired:input/types\x05\x06\x02\x03\0\x03\x0binput-event\x01B\x0a\x02\x03\x02\x01\x07\ +\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\ +\x04\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\ +\0\x06\x04\0\x1a[method]input-handler.next\x01\x07\x03\x01\x13wired:input/handle\ +r\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\ +\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06\ +cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\ +\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0f\ +rigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constru\ +ctor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider\ +.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.\ +set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[con\ +structor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method\ +]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\0\x1d[met\ +hod]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\x12\x04\ +\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/types\x05\x09\ +\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput-handler\x02\x03\0\0\x09transform\x02\ +\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BE\x02\x03\x02\x01\x0a\x04\ +\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\x02\x03\x02\ +\x01\x0c\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0d\x04\0\x08collider\x03\0\ +\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x0f\x02\x03\0\ +\x06\x04node\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\0\x02\x03\x02\x01\ +\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\x04\0\x05scene\x03\x01\x01i\x05\ +\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.list-scenes\x01\x08\x01h\x05\x01@\x01\ +\x05value\x09\x01\0\x04\0\x16[static]root.add-scene\x01\x0a\x04\0\x19[static]roo\ +t.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[constructor]scene\x01\x0b\x01i\x03\ +\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18[method]scene.list-nodes\x01\x0e\x01\ +@\x01\x04self\x09\0\x0c\x04\0\x19[method]scene.create-node\x01\x0f\x01h\x03\x01@\ +\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16[method]scene.add-node\x01\x11\x04\0\ +\x19[method]scene.remove-node\x01\x11\x01@\x01\x04self\x09\0\x01\x04\0\x17[metho\ +d]scene.transform\x01\x12\x01@\x02\x04self\x09\x05value\x01\x01\0\x04\0\x1b[meth\ +od]scene.set-transform\x01\x13\x01@\x01\x04self\x09\0\x7f\x04\0\x14[method]scene\ +.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\x01\0\x04\0\x18[method]scene.s\ +et-active\x01\x15\x03\x01\x0funavi:scene/api\x05\x11\x02\x03\0\0\x04vec2\x01BY\x02\ +\x03\x02\x01\x12\x04\0\x04vec2\x03\0\0\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\ +\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\x03\x02\x01\x10\x04\0\x04node\x03\ +\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cylinder\x03\x01\x04\0\x06cuboid\x03\x01\ +\x01r\x01\x0csubdivisions}\x04\0\x0asphere-ico\x03\0\x0b\x01r\x02\x07sectors}\x06\ +stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\ +\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\x03\x01\x01i\x08\x01@\x01\x04size\x01\ +\0\x12\x04\0\x16[constructor]rectangle\x01\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\ +\x04\0\x16[method]rectangle.size\x01\x15\x01@\x02\x04self\x14\x05value\x01\x01\0\ +\x04\0\x1a[method]rectangle.set-size\x01\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\ +\x04\0\x19[method]rectangle.to-mesh\x01\x18\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\ +\0\x19[method]rectangle.to-node\x01\x1a\x04\0![method]rectangle.to-physics-node\x01\ +\x1a\x01i\x09\x01@\x02\x06radiusv\x06heightv\0\x1b\x04\0\x15[constructor]cylinde\ +r\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\ +\x01@\x02\x04self\x1d\x05value\x7f\x01\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\ +\x01@\x01\x04self\x1d\0v\x04\0\x17[method]cylinder.height\x01\x20\x01@\x02\x04se\ +lf\x1d\x05valuev\x01\0\x04\0\x1b[method]cylinder.set-height\x01!\x04\0\x17[metho\ +d]cylinder.radius\x01\x20\x04\0\x1b[method]cylinder.set-radius\x01!\x01@\x01\x04\ +self\x1d\0}\x04\0\x1b[method]cylinder.resolution\x01\"\x01@\x02\x04self\x1d\x05v\ +alue}\x01\0\x04\0\x1f[method]cylinder.set-resolution\x01#\x04\0\x19[method]cylin\ +der.segments\x01\"\x04\0\x1d[method]cylinder.set-segments\x01#\x01@\x01\x04self\x1d\ +\0\x17\x04\0\x18[method]cylinder.to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18\ +[method]cylinder.to-node\x01%\x04\0\x20[method]cylinder.to-physics-node\x01%\x01\ +i\x0a\x01@\x01\x04size\x03\0&\x04\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\ +\x04self(\0\x03\x04\0\x13[method]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\ +\x01\0\x04\0\x17[method]cuboid.set-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[m\ +ethod]cuboid.to-mesh\x01+\x01@\x01\x04self(\0\x19\x04\0\x16[method]cuboid.to-nod\ +e\x01,\x04\0\x1e[method]cuboid.to-physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\ +\0-\x04\0\x16[static]sphere.new-ico\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01\ +h\x11\x01@\x01\x04self/\0v\x04\0\x15[method]sphere.radius\x010\x01@\x02\x04self/\ +\x05valuev\x01\0\x04\0\x19[method]sphere.set-radius\x011\x01@\x01\x04self/\0\x10\ +\x04\0\x13[method]sphere.kind\x012\x01@\x02\x04self/\x05value\x10\x01\0\x04\0\x17\ +[method]sphere.set-kind\x013\x01@\x01\x04self/\0\x17\x04\0\x16[method]sphere.to-\ +mesh\x014\x01@\x01\x04self/\0\x19\x04\0\x16[method]sphere.to-node\x015\x04\0\x1e\ +[method]sphere.to-physics-node\x015\x03\x01\x10unavi:shapes/api\x05\x13\x01B\x04\ +\x01m\x04\x05debug\x04info\x04warn\x05error\x04\0\x09log-level\x03\0\0\x01@\x02\x05\ +level\x01\x07messages\x01\0\x04\0\x03log\x01\x02\x03\x01\x0dwired:log/api\x05\x14\ +\x01B\x11\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\0\x01i\x01\x01r\x14\x04hips\x02\ +\x05spine\x02\x05chest\x02\x0bupper-chest\x02\x04neck\x02\x04head\x02\x0dleft-sh\ +oulder\x02\x0eleft-upper-arm\x02\x0eleft-lower-arm\x02\x09left-hand\x02\x0eright\ +-shoulder\x02\x0fright-upper-arm\x02\x0fright-lower-arm\x02\x0aright-hand\x02\x0e\ +left-upper-leg\x02\x0eleft-lower-leg\x02\x09left-foot\x02\x0fright-upper-leg\x02\ +\x0fright-lower-leg\x02\x0aright-foot\x02\x04\0\x08skeleton\x03\0\x03\x04\0\x06p\ +layer\x03\x01\x01h\x05\x01@\x01\x04self\x06\0\x02\x04\0\x13[method]player.root\x01\ +\x07\x01@\x01\x04self\x06\0\x04\x04\0\x17[method]player.skeleton\x01\x08\x01i\x05\ +\x01p\x09\x01@\0\0\x0a\x04\0\x0clist-players\x01\x0b\x01@\0\0\x09\x04\0\x0clocal\ +-player\x01\x0c\x03\x01\x10wired:player/api\x05\x15\x01B\x15\x02\x03\x02\x01\x10\ +\x04\0\x04node\x03\0\0\x04\0\x05scene\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x12[co\ +nstructor]scene\x01\x04\x01h\x02\x01@\x01\x04self\x05\0y\x04\0\x10[method]scene.\ +id\x01\x06\x01@\x01\x04self\x05\0s\x04\0\x12[method]scene.name\x01\x07\x01@\x02\x04\ +self\x05\x05values\x01\0\x04\0\x16[method]scene.set-name\x01\x08\x01i\x01\x01p\x09\ +\x01@\x01\x04self\x05\0\x0a\x04\0\x13[method]scene.nodes\x01\x0b\x01h\x01\x01@\x02\ +\x04self\x05\x05value\x0c\x01\0\x04\0\x16[method]scene.add-node\x01\x0d\x04\0\x19\ +[method]scene.remove-node\x01\x0d\x03\x01\x11wired:scene/scene\x05\x16\x02\x03\0\ +\x0b\x05scene\x01B5\x02\x03\x02\x01\x02\x04\0\x08material\x03\0\0\x02\x03\x02\x01\ +\x0a\x04\0\x04mesh\x03\0\x02\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x04\x02\x03\ +\x02\x01\x17\x04\0\x05scene\x03\0\x06\x04\0\x04gltf\x03\x01\x01i\x08\x01@\0\0\x09\ +\x04\0\x11[constructor]gltf\x01\x0a\x01h\x08\x01i\x01\x01p\x0c\x01@\x01\x04self\x0b\ +\0\x0d\x04\0\x1b[method]gltf.list-materials\x01\x0e\x01h\x01\x01@\x02\x04self\x0b\ +\x05value\x0f\x01\0\x04\0\x19[method]gltf.add-material\x01\x10\x04\0\x1c[method]\ +gltf.remove-material\x01\x10\x01i\x03\x01p\x11\x01@\x01\x04self\x0b\0\x12\x04\0\x18\ +[method]gltf.list-meshes\x01\x13\x01h\x03\x01@\x02\x04self\x0b\x05value\x14\x01\0\ +\x04\0\x15[method]gltf.add-mesh\x01\x15\x04\0\x18[method]gltf.remove-mesh\x01\x15\ +\x01i\x05\x01p\x16\x01@\x01\x04self\x0b\0\x17\x04\0\x17[method]gltf.list-nodes\x01\ +\x18\x01h\x05\x01@\x02\x04self\x0b\x05value\x19\x01\0\x04\0\x15[method]gltf.add-\ +node\x01\x1a\x04\0\x18[method]gltf.remove-node\x01\x1a\x01i\x07\x01p\x1b\x01@\x01\ +\x04self\x0b\0\x1c\x04\0\x18[method]gltf.list-scenes\x01\x1d\x01h\x07\x01@\x02\x04\ +self\x0b\x05value\x1e\x01\0\x04\0\x16[method]gltf.add-scene\x01\x1f\x04\0\x19[me\ +thod]gltf.remove-scene\x01\x1f\x01k\x1b\x01@\x01\x04self\x0b\0\x20\x04\0\x19[met\ +hod]gltf.active-scene\x01!\x01k\x1e\x01@\x02\x04self\x0b\x05value\"\x01\0\x04\0\x1d\ +[method]gltf.set-active-scene\x01#\x04\0\x1a[method]gltf.default-scene\x01!\x04\0\ +\x1e[method]gltf.set-default-scene\x01\x1f\x03\x01\x10wired:scene/gltf\x05\x18\x02\ +\x03\0\x0c\x04gltf\x01Bt\x02\x03\x02\x01\x19\x04\0\x04gltf\x03\0\0\x02\x03\x02\x01\ +\x10\x04\0\x04node\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x04\ +\0\x04glxf\x03\x01\x04\0\x0aasset-gltf\x03\x01\x04\0\x0aasset-glxf\x03\x01\x01i\x07\ +\x01i\x08\x01q\x02\x04gltf\x01\x09\0\x04glxf\x01\x0a\0\x04\0\x05asset\x03\0\x0b\x01\ +h\x07\x01h\x08\x01q\x02\x04gltf\x01\x0d\0\x04glxf\x01\x0e\0\x04\0\x0casset-borro\ +w\x03\0\x0f\x04\0\x09glxf-node\x03\x01\x01i\x11\x01p\x12\x01q\x02\x05asset\x01\x0c\ +\0\x05nodes\x01\x13\0\x04\0\x08children\x03\0\x14\x01h\x11\x01p\x16\x01q\x02\x05\ +asset\x01\x10\0\x05nodes\x01\x17\0\x04\0\x0fchildren-borrow\x03\0\x18\x04\0\x0ag\ +lxf-scene\x03\x01\x01i\x06\x01@\0\0\x1b\x04\0\x11[constructor]glxf\x01\x1c\x01h\x06\ +\x01p\x0c\x01@\x01\x04self\x1d\0\x1e\x04\0\x18[method]glxf.list-assets\x01\x1f\x01\ +@\x02\x04self\x1d\x05value\x10\x01\0\x04\0\x16[method]glxf.add-asset\x01\x20\x04\ +\0\x19[method]glxf.remove-asset\x01\x20\x01@\x01\x04self\x1d\0\x13\x04\0\x17[met\ +hod]glxf.list-nodes\x01!\x01@\x02\x04self\x1d\x05value\x16\x01\0\x04\0\x15[metho\ +d]glxf.add-node\x01\"\x04\0\x18[method]glxf.remove-node\x01\"\x01i\x1a\x01p#\x01\ +@\x01\x04self\x1d\0$\x04\0\x18[method]glxf.list-scenes\x01%\x01h\x1a\x01@\x02\x04\ +self\x1d\x05value&\x01\0\x04\0\x16[method]glxf.add-scene\x01'\x04\0\x19[method]g\ +lxf.remove-scene\x01'\x01k#\x01@\x01\x04self\x1d\0(\x04\0\x19[method]glxf.active\ +-scene\x01)\x01k&\x01@\x02\x04self\x1d\x05value*\x01\0\x04\0\x1d[method]glxf.set\ +-active-scene\x01+\x04\0\x1a[method]glxf.default-scene\x01)\x04\0\x1e[method]glx\ +f.set-default-scene\x01'\x01h\x01\x01@\x01\x08document,\0\x09\x04\0\x17[construc\ +tor]asset-gltf\x01-\x01i\x01\x01@\x01\x04self\x0d\0.\x04\0\x1b[method]asset-gltf\ +.document\x01/\x01i\x03\x01p0\x01@\x01\x04self\x0d\01\x04\0\x1d[method]asset-glt\ +f.list-nodes\x012\x01h\x03\x01@\x02\x04self\x0d\x05value3\x01\0\x04\0\x1b[method\ +]asset-gltf.add-node\x014\x04\0\x1e[method]asset-gltf.remove-node\x014\x01@\x01\x08\ +document\x1d\0\x0a\x04\0\x17[constructor]asset-glxf\x015\x01@\x01\x04self\x0e\0\x1b\ +\x04\0\x1b[method]asset-glxf.document\x016\x01@\x01\x04self\x0e\0\x13\x04\0\x1d[\ +method]asset-glxf.list-nodes\x017\x01@\x02\x04self\x0e\x05value\x16\x01\0\x04\0\x1b\ +[method]asset-glxf.add-node\x018\x04\0\x1e[method]asset-glxf.remove-node\x018\x01\ +@\0\0\x12\x04\0\x16[constructor]glxf-node\x019\x01@\x01\x04self\x16\0y\x04\0\x14\ +[method]glxf-node.id\x01:\x01@\x01\x04self\x16\0s\x04\0\x16[method]glxf-node.nam\ +e\x01;\x01@\x02\x04self\x16\x05values\x01\0\x04\0\x1a[method]glxf-node.set-name\x01\ +<\x01@\x01\x04self\x16\0\x05\x04\0\x1b[method]glxf-node.transform\x01=\x01@\x02\x04\ +self\x16\x05value\x05\x01\0\x04\0\x1f[method]glxf-node.set-transform\x01>\x01k\x12\ +\x01@\x01\x04self\x16\0?\x04\0\x18[method]glxf-node.parent\x01@\x01k\x15\x01@\x01\ +\x04self\x16\0\xc1\0\x04\0\x1a[method]glxf-node.children\x01B\x01k\x19\x01@\x02\x04\ +self\x16\x05value\xc3\0\x01\0\x04\0\x1e[method]glxf-node.set-children\x01D\x01@\0\ +\0#\x04\0\x17[constructor]glxf-scene\x01E\x01@\x01\x04self&\0y\x04\0\x15[method]\ +glxf-scene.id\x01F\x01@\x01\x04self&\0s\x04\0\x17[method]glxf-scene.name\x01G\x01\ +@\x02\x04self&\x05values\x01\0\x04\0\x1b[method]glxf-scene.set-name\x01H\x01@\x01\ +\x04self&\0\x13\x04\0\x18[method]glxf-scene.nodes\x01I\x01@\x02\x04self&\x04node\ +\x16\x01\0\x04\0\x1b[method]glxf-scene.add-node\x01J\x04\0\x1e[method]glxf-scene\ +.remove-node\x01J\x04\0\x08get-root\x01\x1c\x03\x01\x10wired:scene/glxf\x05\x1a\x01\ +B\x07\x04\0\x06script\x03\x01\x01i\0\x01@\0\0\x01\x04\0\x13[constructor]script\x01\ +\x02\x01h\0\x01@\x02\x04self\x03\x05deltav\x01\0\x04\0\x15[method]script.update\x01\ +\x04\x04\x01\x12wired:script/types\x05\x1b\x04\x01\x1cexample:wired-physics/scri\ +pt\x04\0\x0b\x0c\x01\0\x06script\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\ +\x0dwit-component\x070.208.1\x10wit-bindgen-rust\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wasm/example-wired-player/src/bindings.rs b/wasm/example-wired-player/src/bindings.rs index 6ad875bd1..f38e4a80e 100644 --- a/wasm/example-wired-player/src/bindings.rs +++ b/wasm/example-wired-player/src/bindings.rs @@ -1628,46 +1628,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -1676,20 +1670,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -1773,16 +1764,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -1798,535 +1789,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -2335,72 +2335,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -7596,8 +7565,8 @@ pub(crate) use __export_script_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:script:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 9651] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xb6J\x01A\x02\x01A+\x01\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 9626] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x9dJ\x01A\x02\x01A+\x01\ B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\0\ \x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01r\ \x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ @@ -7633,182 +7602,181 @@ method]mesh.create-primitive\x01\x1a\x01@\x02\x04self\x12\x05value\x17\x01\0\x04 \0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\x06distal\x07\x08proximal\x07\x0ametac\ arpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\x01r\x09\x04side\x05\x05thumb\x09\x05\ index\x09\x06middle\x09\x04ring\x09\x06little\x09\x04palm\x07\x05wrist\x07\x05el\ -bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06origin\x01\x0borientation\x03\x04\0\x03\ -ray\x03\0\x0d\x01r\x03\x06origin\x01\x0borientation\x03\x06radiusv\x04\0\x03tip\x03\ -\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainp\ -ut-type\x03\0\x11\x01r\x04\x02idw\x05input\x12\x08distancev\x05ordery\x04\0\x0bi\ -nput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x06\x02\x03\0\x03\x0binput\ --event\x01B\x0a\x02\x03\x02\x01\x07\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-\ -handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\x04\ -\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\"[method]input-handler.handl\ -e-input\x01\x07\x03\x01\x13wired:input/handler\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\ -\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\ -\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\ -\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07\ -dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\ -\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04\ -self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05va\ -luev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0fri\ -gid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\ -\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\ -\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[met\ -hod]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\ -\x01\x13wired:physics/types\x05\x09\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput\ --handler\x02\x03\0\0\x09transform\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0arig\ -id-body\x01BE\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\ -\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0d\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x0f\x02\x03\0\x06\x04node\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09\ -transform\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\ -\x04\0\x05scene\x03\x01\x01i\x05\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.lis\ -t-scenes\x01\x08\x01h\x05\x01@\x01\x05value\x09\x01\0\x04\0\x16[static]root.add-\ -scene\x01\x0a\x04\0\x19[static]root.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[\ -constructor]scene\x01\x0b\x01i\x03\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18\ -[method]scene.list-nodes\x01\x0e\x01@\x01\x04self\x09\0\x0c\x04\0\x19[method]sce\ -ne.create-node\x01\x0f\x01h\x03\x01@\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16\ -[method]scene.add-node\x01\x11\x04\0\x19[method]scene.remove-node\x01\x11\x01@\x01\ -\x04self\x09\0\x01\x04\0\x17[method]scene.transform\x01\x12\x01@\x02\x04self\x09\ -\x05value\x01\x01\0\x04\0\x1b[method]scene.set-transform\x01\x13\x01@\x01\x04sel\ -f\x09\0\x7f\x04\0\x14[method]scene.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\ -\x01\0\x04\0\x18[method]scene.set-active\x01\x15\x03\x01\x0funavi:scene/api\x05\x11\ -\x02\x03\0\0\x04vec2\x01BY\x02\x03\x02\x01\x12\x04\0\x04vec2\x03\0\0\x02\x03\x02\ -\x01\x04\x04\0\x04vec3\x03\0\x02\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\ -\x03\x02\x01\x10\x04\0\x04node\x03\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cyl\ -inder\x03\x01\x04\0\x06cuboid\x03\x01\x01r\x01\x0csubdivisions}\x04\0\x0asphere-\ -ico\x03\0\x0b\x01r\x02\x07sectors}\x06stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\ -\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\ -\x03\x01\x01i\x08\x01@\x01\x04size\x01\0\x12\x04\0\x16[constructor]rectangle\x01\ -\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\x04\0\x16[method]rectangle.size\x01\x15\ -\x01@\x02\x04self\x14\x05value\x01\x01\0\x04\0\x1a[method]rectangle.set-size\x01\ -\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\x04\0\x19[method]rectangle.to-mesh\x01\x18\ -\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\0\x19[method]rectangle.to-node\x01\x1a\x04\ -\0![method]rectangle.to-physics-node\x01\x1a\x01i\x09\x01@\x02\x06radiusv\x06hei\ -ghtv\0\x1b\x04\0\x15[constructor]cylinder\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\ -\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\x01@\x02\x04self\x1d\x05value\x7f\x01\ -\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\x01@\x01\x04self\x1d\0v\x04\0\x17[m\ -ethod]cylinder.height\x01\x20\x01@\x02\x04self\x1d\x05valuev\x01\0\x04\0\x1b[met\ -hod]cylinder.set-height\x01!\x04\0\x17[method]cylinder.radius\x01\x20\x04\0\x1b[\ -method]cylinder.set-radius\x01!\x01@\x01\x04self\x1d\0}\x04\0\x1b[method]cylinde\ -r.resolution\x01\"\x01@\x02\x04self\x1d\x05value}\x01\0\x04\0\x1f[method]cylinde\ -r.set-resolution\x01#\x04\0\x19[method]cylinder.segments\x01\"\x04\0\x1d[method]\ -cylinder.set-segments\x01#\x01@\x01\x04self\x1d\0\x17\x04\0\x18[method]cylinder.\ -to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18[method]cylinder.to-node\x01%\x04\ -\0\x20[method]cylinder.to-physics-node\x01%\x01i\x0a\x01@\x01\x04size\x03\0&\x04\ -\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\x04self(\0\x03\x04\0\x13[method\ -]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\x01\0\x04\0\x17[method]cuboid.s\ -et-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[method]cuboid.to-mesh\x01+\x01@\x01\ -\x04self(\0\x19\x04\0\x16[method]cuboid.to-node\x01,\x04\0\x1e[method]cuboid.to-\ -physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\0-\x04\0\x16[static]sphere.new-ic\ -o\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01h\x11\x01@\x01\x04self/\0v\x04\0\x15\ -[method]sphere.radius\x010\x01@\x02\x04self/\x05valuev\x01\0\x04\0\x19[method]sp\ -here.set-radius\x011\x01@\x01\x04self/\0\x10\x04\0\x13[method]sphere.kind\x012\x01\ -@\x02\x04self/\x05value\x10\x01\0\x04\0\x17[method]sphere.set-kind\x013\x01@\x01\ -\x04self/\0\x17\x04\0\x16[method]sphere.to-mesh\x014\x01@\x01\x04self/\0\x19\x04\ -\0\x16[method]sphere.to-node\x015\x04\0\x1e[method]sphere.to-physics-node\x015\x03\ -\x01\x10unavi:shapes/api\x05\x13\x01B\x04\x01m\x04\x05debug\x04info\x04warn\x05e\ -rror\x04\0\x09log-level\x03\0\0\x01@\x02\x05level\x01\x07messages\x01\0\x04\0\x03\ -log\x01\x02\x03\x01\x0dwired:log/api\x05\x14\x01B\x11\x02\x03\x02\x01\x10\x04\0\x04\ -node\x03\0\0\x01i\x01\x01r\x14\x04hips\x02\x05spine\x02\x05chest\x02\x0bupper-ch\ -est\x02\x04neck\x02\x04head\x02\x0dleft-shoulder\x02\x0eleft-upper-arm\x02\x0ele\ -ft-lower-arm\x02\x09left-hand\x02\x0eright-shoulder\x02\x0fright-upper-arm\x02\x0f\ -right-lower-arm\x02\x0aright-hand\x02\x0eleft-upper-leg\x02\x0eleft-lower-leg\x02\ -\x09left-foot\x02\x0fright-upper-leg\x02\x0fright-lower-leg\x02\x0aright-foot\x02\ -\x04\0\x08skeleton\x03\0\x03\x04\0\x06player\x03\x01\x01h\x05\x01@\x01\x04self\x06\ -\0\x02\x04\0\x13[method]player.root\x01\x07\x01@\x01\x04self\x06\0\x04\x04\0\x17\ -[method]player.skeleton\x01\x08\x01i\x05\x01p\x09\x01@\0\0\x0a\x04\0\x0clist-pla\ -yers\x01\x0b\x01@\0\0\x09\x04\0\x0clocal-player\x01\x0c\x03\x01\x10wired:player/\ -api\x05\x15\x01B\x15\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\0\x04\0\x05scene\x03\ -\x01\x01i\x02\x01@\0\0\x03\x04\0\x12[constructor]scene\x01\x04\x01h\x02\x01@\x01\ -\x04self\x05\0y\x04\0\x10[method]scene.id\x01\x06\x01@\x01\x04self\x05\0s\x04\0\x12\ -[method]scene.name\x01\x07\x01@\x02\x04self\x05\x05values\x01\0\x04\0\x16[method\ -]scene.set-name\x01\x08\x01i\x01\x01p\x09\x01@\x01\x04self\x05\0\x0a\x04\0\x13[m\ -ethod]scene.nodes\x01\x0b\x01h\x01\x01@\x02\x04self\x05\x05value\x0c\x01\0\x04\0\ -\x16[method]scene.add-node\x01\x0d\x04\0\x19[method]scene.remove-node\x01\x0d\x03\ -\x01\x11wired:scene/scene\x05\x16\x02\x03\0\x0b\x05scene\x01B5\x02\x03\x02\x01\x02\ -\x04\0\x08material\x03\0\0\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x02\x02\x03\x02\ -\x01\x10\x04\0\x04node\x03\0\x04\x02\x03\x02\x01\x17\x04\0\x05scene\x03\0\x06\x04\ -\0\x04gltf\x03\x01\x01i\x08\x01@\0\0\x09\x04\0\x11[constructor]gltf\x01\x0a\x01h\ -\x08\x01i\x01\x01p\x0c\x01@\x01\x04self\x0b\0\x0d\x04\0\x1b[method]gltf.list-mat\ -erials\x01\x0e\x01h\x01\x01@\x02\x04self\x0b\x05value\x0f\x01\0\x04\0\x19[method\ -]gltf.add-material\x01\x10\x04\0\x1c[method]gltf.remove-material\x01\x10\x01i\x03\ -\x01p\x11\x01@\x01\x04self\x0b\0\x12\x04\0\x18[method]gltf.list-meshes\x01\x13\x01\ -h\x03\x01@\x02\x04self\x0b\x05value\x14\x01\0\x04\0\x15[method]gltf.add-mesh\x01\ -\x15\x04\0\x18[method]gltf.remove-mesh\x01\x15\x01i\x05\x01p\x16\x01@\x01\x04sel\ -f\x0b\0\x17\x04\0\x17[method]gltf.list-nodes\x01\x18\x01h\x05\x01@\x02\x04self\x0b\ -\x05value\x19\x01\0\x04\0\x15[method]gltf.add-node\x01\x1a\x04\0\x18[method]gltf\ -.remove-node\x01\x1a\x01i\x07\x01p\x1b\x01@\x01\x04self\x0b\0\x1c\x04\0\x18[meth\ -od]gltf.list-scenes\x01\x1d\x01h\x07\x01@\x02\x04self\x0b\x05value\x1e\x01\0\x04\ -\0\x16[method]gltf.add-scene\x01\x1f\x04\0\x19[method]gltf.remove-scene\x01\x1f\x01\ -k\x1b\x01@\x01\x04self\x0b\0\x20\x04\0\x19[method]gltf.active-scene\x01!\x01k\x1e\ -\x01@\x02\x04self\x0b\x05value\"\x01\0\x04\0\x1d[method]gltf.set-active-scene\x01\ -#\x04\0\x1a[method]gltf.default-scene\x01!\x04\0\x1e[method]gltf.set-default-sce\ -ne\x01\x1f\x03\x01\x10wired:scene/gltf\x05\x18\x02\x03\0\x0c\x04gltf\x01Bt\x02\x03\ -\x02\x01\x19\x04\0\x04gltf\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x02\ -\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x04\0\x04glxf\x03\x01\x04\0\x0aass\ -et-gltf\x03\x01\x04\0\x0aasset-glxf\x03\x01\x01i\x07\x01i\x08\x01q\x02\x04gltf\x01\ -\x09\0\x04glxf\x01\x0a\0\x04\0\x05asset\x03\0\x0b\x01h\x07\x01h\x08\x01q\x02\x04\ -gltf\x01\x0d\0\x04glxf\x01\x0e\0\x04\0\x0casset-borrow\x03\0\x0f\x04\0\x09glxf-n\ -ode\x03\x01\x01i\x11\x01p\x12\x01q\x02\x05asset\x01\x0c\0\x05nodes\x01\x13\0\x04\ -\0\x08children\x03\0\x14\x01h\x11\x01p\x16\x01q\x02\x05asset\x01\x10\0\x05nodes\x01\ -\x17\0\x04\0\x0fchildren-borrow\x03\0\x18\x04\0\x0aglxf-scene\x03\x01\x01i\x06\x01\ -@\0\0\x1b\x04\0\x11[constructor]glxf\x01\x1c\x01h\x06\x01p\x0c\x01@\x01\x04self\x1d\ -\0\x1e\x04\0\x18[method]glxf.list-assets\x01\x1f\x01@\x02\x04self\x1d\x05value\x10\ -\x01\0\x04\0\x16[method]glxf.add-asset\x01\x20\x04\0\x19[method]glxf.remove-asse\ -t\x01\x20\x01@\x01\x04self\x1d\0\x13\x04\0\x17[method]glxf.list-nodes\x01!\x01@\x02\ -\x04self\x1d\x05value\x16\x01\0\x04\0\x15[method]glxf.add-node\x01\"\x04\0\x18[m\ -ethod]glxf.remove-node\x01\"\x01i\x1a\x01p#\x01@\x01\x04self\x1d\0$\x04\0\x18[me\ -thod]glxf.list-scenes\x01%\x01h\x1a\x01@\x02\x04self\x1d\x05value&\x01\0\x04\0\x16\ -[method]glxf.add-scene\x01'\x04\0\x19[method]glxf.remove-scene\x01'\x01k#\x01@\x01\ -\x04self\x1d\0(\x04\0\x19[method]glxf.active-scene\x01)\x01k&\x01@\x02\x04self\x1d\ -\x05value*\x01\0\x04\0\x1d[method]glxf.set-active-scene\x01+\x04\0\x1a[method]gl\ -xf.default-scene\x01)\x04\0\x1e[method]glxf.set-default-scene\x01'\x01h\x01\x01@\ -\x01\x08document,\0\x09\x04\0\x17[constructor]asset-gltf\x01-\x01i\x01\x01@\x01\x04\ -self\x0d\0.\x04\0\x1b[method]asset-gltf.document\x01/\x01i\x03\x01p0\x01@\x01\x04\ -self\x0d\01\x04\0\x1d[method]asset-gltf.list-nodes\x012\x01h\x03\x01@\x02\x04sel\ -f\x0d\x05value3\x01\0\x04\0\x1b[method]asset-gltf.add-node\x014\x04\0\x1e[method\ -]asset-gltf.remove-node\x014\x01@\x01\x08document\x1d\0\x0a\x04\0\x17[constructo\ -r]asset-glxf\x015\x01@\x01\x04self\x0e\0\x1b\x04\0\x1b[method]asset-glxf.documen\ -t\x016\x01@\x01\x04self\x0e\0\x13\x04\0\x1d[method]asset-glxf.list-nodes\x017\x01\ -@\x02\x04self\x0e\x05value\x16\x01\0\x04\0\x1b[method]asset-glxf.add-node\x018\x04\ -\0\x1e[method]asset-glxf.remove-node\x018\x01@\0\0\x12\x04\0\x16[constructor]glx\ -f-node\x019\x01@\x01\x04self\x16\0y\x04\0\x14[method]glxf-node.id\x01:\x01@\x01\x04\ -self\x16\0s\x04\0\x16[method]glxf-node.name\x01;\x01@\x02\x04self\x16\x05values\x01\ -\0\x04\0\x1a[method]glxf-node.set-name\x01<\x01@\x01\x04self\x16\0\x05\x04\0\x1b\ -[method]glxf-node.transform\x01=\x01@\x02\x04self\x16\x05value\x05\x01\0\x04\0\x1f\ -[method]glxf-node.set-transform\x01>\x01k\x12\x01@\x01\x04self\x16\0?\x04\0\x18[\ -method]glxf-node.parent\x01@\x01k\x15\x01@\x01\x04self\x16\0\xc1\0\x04\0\x1a[met\ -hod]glxf-node.children\x01B\x01k\x19\x01@\x02\x04self\x16\x05value\xc3\0\x01\0\x04\ -\0\x1e[method]glxf-node.set-children\x01D\x01@\0\0#\x04\0\x17[constructor]glxf-s\ -cene\x01E\x01@\x01\x04self&\0y\x04\0\x15[method]glxf-scene.id\x01F\x01@\x01\x04s\ -elf&\0s\x04\0\x17[method]glxf-scene.name\x01G\x01@\x02\x04self&\x05values\x01\0\x04\ -\0\x1b[method]glxf-scene.set-name\x01H\x01@\x01\x04self&\0\x13\x04\0\x18[method]\ -glxf-scene.nodes\x01I\x01@\x02\x04self&\x04node\x16\x01\0\x04\0\x1b[method]glxf-\ -scene.add-node\x01J\x04\0\x1e[method]glxf-scene.remove-node\x01J\x04\0\x08get-ro\ -ot\x01\x1c\x03\x01\x10wired:scene/glxf\x05\x1a\x01B\x07\x04\0\x06script\x03\x01\x01\ -i\0\x01@\0\0\x01\x04\0\x13[constructor]script\x01\x02\x01h\0\x01@\x02\x04self\x03\ -\x05deltav\x01\0\x04\0\x15[method]script.update\x01\x04\x04\x01\x12wired:script/\ -types\x05\x1b\x04\x01\x1bexample:wired-player/script\x04\0\x0b\x0c\x01\0\x06scri\ -pt\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10\ -wit-bindgen-rust\x060.25.0"; +bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0borientation\x03\x06origin\x01\x04\0\x03\ +ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x04\0\x0ainput-data\x03\ +\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\0\x04\0\x0cinput-action\x03\0\x11\x01\ +r\x03\x02idw\x06action\x12\x04data\x10\x04\0\x0binput-event\x03\0\x13\x03\x01\x11\ +wired:input/types\x05\x06\x02\x03\0\x03\x0binput-event\x01B\x0a\x02\x03\x02\x01\x07\ +\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\ +\x04\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\ +\0\x06\x04\0\x1a[method]input-handler.next\x01\x07\x03\x01\x13wired:input/handle\ +r\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\ +\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06\ +cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\ +\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0f\ +rigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constru\ +ctor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider\ +.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.\ +set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[con\ +structor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method\ +]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\0\x1d[met\ +hod]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\x12\x04\ +\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/types\x05\x09\ +\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput-handler\x02\x03\0\0\x09transform\x02\ +\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BE\x02\x03\x02\x01\x0a\x04\ +\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\x02\x03\x02\ +\x01\x0c\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0d\x04\0\x08collider\x03\0\ +\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x0f\x02\x03\0\ +\x06\x04node\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\0\x02\x03\x02\x01\ +\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\x04\0\x05scene\x03\x01\x01i\x05\ +\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.list-scenes\x01\x08\x01h\x05\x01@\x01\ +\x05value\x09\x01\0\x04\0\x16[static]root.add-scene\x01\x0a\x04\0\x19[static]roo\ +t.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[constructor]scene\x01\x0b\x01i\x03\ +\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18[method]scene.list-nodes\x01\x0e\x01\ +@\x01\x04self\x09\0\x0c\x04\0\x19[method]scene.create-node\x01\x0f\x01h\x03\x01@\ +\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16[method]scene.add-node\x01\x11\x04\0\ +\x19[method]scene.remove-node\x01\x11\x01@\x01\x04self\x09\0\x01\x04\0\x17[metho\ +d]scene.transform\x01\x12\x01@\x02\x04self\x09\x05value\x01\x01\0\x04\0\x1b[meth\ +od]scene.set-transform\x01\x13\x01@\x01\x04self\x09\0\x7f\x04\0\x14[method]scene\ +.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\x01\0\x04\0\x18[method]scene.s\ +et-active\x01\x15\x03\x01\x0funavi:scene/api\x05\x11\x02\x03\0\0\x04vec2\x01BY\x02\ +\x03\x02\x01\x12\x04\0\x04vec2\x03\0\0\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\ +\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\x03\x02\x01\x10\x04\0\x04node\x03\ +\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cylinder\x03\x01\x04\0\x06cuboid\x03\x01\ +\x01r\x01\x0csubdivisions}\x04\0\x0asphere-ico\x03\0\x0b\x01r\x02\x07sectors}\x06\ +stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\ +\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\x03\x01\x01i\x08\x01@\x01\x04size\x01\ +\0\x12\x04\0\x16[constructor]rectangle\x01\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\ +\x04\0\x16[method]rectangle.size\x01\x15\x01@\x02\x04self\x14\x05value\x01\x01\0\ +\x04\0\x1a[method]rectangle.set-size\x01\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\ +\x04\0\x19[method]rectangle.to-mesh\x01\x18\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\ +\0\x19[method]rectangle.to-node\x01\x1a\x04\0![method]rectangle.to-physics-node\x01\ +\x1a\x01i\x09\x01@\x02\x06radiusv\x06heightv\0\x1b\x04\0\x15[constructor]cylinde\ +r\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\ +\x01@\x02\x04self\x1d\x05value\x7f\x01\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\ +\x01@\x01\x04self\x1d\0v\x04\0\x17[method]cylinder.height\x01\x20\x01@\x02\x04se\ +lf\x1d\x05valuev\x01\0\x04\0\x1b[method]cylinder.set-height\x01!\x04\0\x17[metho\ +d]cylinder.radius\x01\x20\x04\0\x1b[method]cylinder.set-radius\x01!\x01@\x01\x04\ +self\x1d\0}\x04\0\x1b[method]cylinder.resolution\x01\"\x01@\x02\x04self\x1d\x05v\ +alue}\x01\0\x04\0\x1f[method]cylinder.set-resolution\x01#\x04\0\x19[method]cylin\ +der.segments\x01\"\x04\0\x1d[method]cylinder.set-segments\x01#\x01@\x01\x04self\x1d\ +\0\x17\x04\0\x18[method]cylinder.to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18\ +[method]cylinder.to-node\x01%\x04\0\x20[method]cylinder.to-physics-node\x01%\x01\ +i\x0a\x01@\x01\x04size\x03\0&\x04\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\ +\x04self(\0\x03\x04\0\x13[method]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\ +\x01\0\x04\0\x17[method]cuboid.set-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[m\ +ethod]cuboid.to-mesh\x01+\x01@\x01\x04self(\0\x19\x04\0\x16[method]cuboid.to-nod\ +e\x01,\x04\0\x1e[method]cuboid.to-physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\ +\0-\x04\0\x16[static]sphere.new-ico\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01\ +h\x11\x01@\x01\x04self/\0v\x04\0\x15[method]sphere.radius\x010\x01@\x02\x04self/\ +\x05valuev\x01\0\x04\0\x19[method]sphere.set-radius\x011\x01@\x01\x04self/\0\x10\ +\x04\0\x13[method]sphere.kind\x012\x01@\x02\x04self/\x05value\x10\x01\0\x04\0\x17\ +[method]sphere.set-kind\x013\x01@\x01\x04self/\0\x17\x04\0\x16[method]sphere.to-\ +mesh\x014\x01@\x01\x04self/\0\x19\x04\0\x16[method]sphere.to-node\x015\x04\0\x1e\ +[method]sphere.to-physics-node\x015\x03\x01\x10unavi:shapes/api\x05\x13\x01B\x04\ +\x01m\x04\x05debug\x04info\x04warn\x05error\x04\0\x09log-level\x03\0\0\x01@\x02\x05\ +level\x01\x07messages\x01\0\x04\0\x03log\x01\x02\x03\x01\x0dwired:log/api\x05\x14\ +\x01B\x11\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\0\x01i\x01\x01r\x14\x04hips\x02\ +\x05spine\x02\x05chest\x02\x0bupper-chest\x02\x04neck\x02\x04head\x02\x0dleft-sh\ +oulder\x02\x0eleft-upper-arm\x02\x0eleft-lower-arm\x02\x09left-hand\x02\x0eright\ +-shoulder\x02\x0fright-upper-arm\x02\x0fright-lower-arm\x02\x0aright-hand\x02\x0e\ +left-upper-leg\x02\x0eleft-lower-leg\x02\x09left-foot\x02\x0fright-upper-leg\x02\ +\x0fright-lower-leg\x02\x0aright-foot\x02\x04\0\x08skeleton\x03\0\x03\x04\0\x06p\ +layer\x03\x01\x01h\x05\x01@\x01\x04self\x06\0\x02\x04\0\x13[method]player.root\x01\ +\x07\x01@\x01\x04self\x06\0\x04\x04\0\x17[method]player.skeleton\x01\x08\x01i\x05\ +\x01p\x09\x01@\0\0\x0a\x04\0\x0clist-players\x01\x0b\x01@\0\0\x09\x04\0\x0clocal\ +-player\x01\x0c\x03\x01\x10wired:player/api\x05\x15\x01B\x15\x02\x03\x02\x01\x10\ +\x04\0\x04node\x03\0\0\x04\0\x05scene\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x12[co\ +nstructor]scene\x01\x04\x01h\x02\x01@\x01\x04self\x05\0y\x04\0\x10[method]scene.\ +id\x01\x06\x01@\x01\x04self\x05\0s\x04\0\x12[method]scene.name\x01\x07\x01@\x02\x04\ +self\x05\x05values\x01\0\x04\0\x16[method]scene.set-name\x01\x08\x01i\x01\x01p\x09\ +\x01@\x01\x04self\x05\0\x0a\x04\0\x13[method]scene.nodes\x01\x0b\x01h\x01\x01@\x02\ +\x04self\x05\x05value\x0c\x01\0\x04\0\x16[method]scene.add-node\x01\x0d\x04\0\x19\ +[method]scene.remove-node\x01\x0d\x03\x01\x11wired:scene/scene\x05\x16\x02\x03\0\ +\x0b\x05scene\x01B5\x02\x03\x02\x01\x02\x04\0\x08material\x03\0\0\x02\x03\x02\x01\ +\x0a\x04\0\x04mesh\x03\0\x02\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x04\x02\x03\ +\x02\x01\x17\x04\0\x05scene\x03\0\x06\x04\0\x04gltf\x03\x01\x01i\x08\x01@\0\0\x09\ +\x04\0\x11[constructor]gltf\x01\x0a\x01h\x08\x01i\x01\x01p\x0c\x01@\x01\x04self\x0b\ +\0\x0d\x04\0\x1b[method]gltf.list-materials\x01\x0e\x01h\x01\x01@\x02\x04self\x0b\ +\x05value\x0f\x01\0\x04\0\x19[method]gltf.add-material\x01\x10\x04\0\x1c[method]\ +gltf.remove-material\x01\x10\x01i\x03\x01p\x11\x01@\x01\x04self\x0b\0\x12\x04\0\x18\ +[method]gltf.list-meshes\x01\x13\x01h\x03\x01@\x02\x04self\x0b\x05value\x14\x01\0\ +\x04\0\x15[method]gltf.add-mesh\x01\x15\x04\0\x18[method]gltf.remove-mesh\x01\x15\ +\x01i\x05\x01p\x16\x01@\x01\x04self\x0b\0\x17\x04\0\x17[method]gltf.list-nodes\x01\ +\x18\x01h\x05\x01@\x02\x04self\x0b\x05value\x19\x01\0\x04\0\x15[method]gltf.add-\ +node\x01\x1a\x04\0\x18[method]gltf.remove-node\x01\x1a\x01i\x07\x01p\x1b\x01@\x01\ +\x04self\x0b\0\x1c\x04\0\x18[method]gltf.list-scenes\x01\x1d\x01h\x07\x01@\x02\x04\ +self\x0b\x05value\x1e\x01\0\x04\0\x16[method]gltf.add-scene\x01\x1f\x04\0\x19[me\ +thod]gltf.remove-scene\x01\x1f\x01k\x1b\x01@\x01\x04self\x0b\0\x20\x04\0\x19[met\ +hod]gltf.active-scene\x01!\x01k\x1e\x01@\x02\x04self\x0b\x05value\"\x01\0\x04\0\x1d\ +[method]gltf.set-active-scene\x01#\x04\0\x1a[method]gltf.default-scene\x01!\x04\0\ +\x1e[method]gltf.set-default-scene\x01\x1f\x03\x01\x10wired:scene/gltf\x05\x18\x02\ +\x03\0\x0c\x04gltf\x01Bt\x02\x03\x02\x01\x19\x04\0\x04gltf\x03\0\0\x02\x03\x02\x01\ +\x10\x04\0\x04node\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x04\ +\0\x04glxf\x03\x01\x04\0\x0aasset-gltf\x03\x01\x04\0\x0aasset-glxf\x03\x01\x01i\x07\ +\x01i\x08\x01q\x02\x04gltf\x01\x09\0\x04glxf\x01\x0a\0\x04\0\x05asset\x03\0\x0b\x01\ +h\x07\x01h\x08\x01q\x02\x04gltf\x01\x0d\0\x04glxf\x01\x0e\0\x04\0\x0casset-borro\ +w\x03\0\x0f\x04\0\x09glxf-node\x03\x01\x01i\x11\x01p\x12\x01q\x02\x05asset\x01\x0c\ +\0\x05nodes\x01\x13\0\x04\0\x08children\x03\0\x14\x01h\x11\x01p\x16\x01q\x02\x05\ +asset\x01\x10\0\x05nodes\x01\x17\0\x04\0\x0fchildren-borrow\x03\0\x18\x04\0\x0ag\ +lxf-scene\x03\x01\x01i\x06\x01@\0\0\x1b\x04\0\x11[constructor]glxf\x01\x1c\x01h\x06\ +\x01p\x0c\x01@\x01\x04self\x1d\0\x1e\x04\0\x18[method]glxf.list-assets\x01\x1f\x01\ +@\x02\x04self\x1d\x05value\x10\x01\0\x04\0\x16[method]glxf.add-asset\x01\x20\x04\ +\0\x19[method]glxf.remove-asset\x01\x20\x01@\x01\x04self\x1d\0\x13\x04\0\x17[met\ +hod]glxf.list-nodes\x01!\x01@\x02\x04self\x1d\x05value\x16\x01\0\x04\0\x15[metho\ +d]glxf.add-node\x01\"\x04\0\x18[method]glxf.remove-node\x01\"\x01i\x1a\x01p#\x01\ +@\x01\x04self\x1d\0$\x04\0\x18[method]glxf.list-scenes\x01%\x01h\x1a\x01@\x02\x04\ +self\x1d\x05value&\x01\0\x04\0\x16[method]glxf.add-scene\x01'\x04\0\x19[method]g\ +lxf.remove-scene\x01'\x01k#\x01@\x01\x04self\x1d\0(\x04\0\x19[method]glxf.active\ +-scene\x01)\x01k&\x01@\x02\x04self\x1d\x05value*\x01\0\x04\0\x1d[method]glxf.set\ +-active-scene\x01+\x04\0\x1a[method]glxf.default-scene\x01)\x04\0\x1e[method]glx\ +f.set-default-scene\x01'\x01h\x01\x01@\x01\x08document,\0\x09\x04\0\x17[construc\ +tor]asset-gltf\x01-\x01i\x01\x01@\x01\x04self\x0d\0.\x04\0\x1b[method]asset-gltf\ +.document\x01/\x01i\x03\x01p0\x01@\x01\x04self\x0d\01\x04\0\x1d[method]asset-glt\ +f.list-nodes\x012\x01h\x03\x01@\x02\x04self\x0d\x05value3\x01\0\x04\0\x1b[method\ +]asset-gltf.add-node\x014\x04\0\x1e[method]asset-gltf.remove-node\x014\x01@\x01\x08\ +document\x1d\0\x0a\x04\0\x17[constructor]asset-glxf\x015\x01@\x01\x04self\x0e\0\x1b\ +\x04\0\x1b[method]asset-glxf.document\x016\x01@\x01\x04self\x0e\0\x13\x04\0\x1d[\ +method]asset-glxf.list-nodes\x017\x01@\x02\x04self\x0e\x05value\x16\x01\0\x04\0\x1b\ +[method]asset-glxf.add-node\x018\x04\0\x1e[method]asset-glxf.remove-node\x018\x01\ +@\0\0\x12\x04\0\x16[constructor]glxf-node\x019\x01@\x01\x04self\x16\0y\x04\0\x14\ +[method]glxf-node.id\x01:\x01@\x01\x04self\x16\0s\x04\0\x16[method]glxf-node.nam\ +e\x01;\x01@\x02\x04self\x16\x05values\x01\0\x04\0\x1a[method]glxf-node.set-name\x01\ +<\x01@\x01\x04self\x16\0\x05\x04\0\x1b[method]glxf-node.transform\x01=\x01@\x02\x04\ +self\x16\x05value\x05\x01\0\x04\0\x1f[method]glxf-node.set-transform\x01>\x01k\x12\ +\x01@\x01\x04self\x16\0?\x04\0\x18[method]glxf-node.parent\x01@\x01k\x15\x01@\x01\ +\x04self\x16\0\xc1\0\x04\0\x1a[method]glxf-node.children\x01B\x01k\x19\x01@\x02\x04\ +self\x16\x05value\xc3\0\x01\0\x04\0\x1e[method]glxf-node.set-children\x01D\x01@\0\ +\0#\x04\0\x17[constructor]glxf-scene\x01E\x01@\x01\x04self&\0y\x04\0\x15[method]\ +glxf-scene.id\x01F\x01@\x01\x04self&\0s\x04\0\x17[method]glxf-scene.name\x01G\x01\ +@\x02\x04self&\x05values\x01\0\x04\0\x1b[method]glxf-scene.set-name\x01H\x01@\x01\ +\x04self&\0\x13\x04\0\x18[method]glxf-scene.nodes\x01I\x01@\x02\x04self&\x04node\ +\x16\x01\0\x04\0\x1b[method]glxf-scene.add-node\x01J\x04\0\x1e[method]glxf-scene\ +.remove-node\x01J\x04\0\x08get-root\x01\x1c\x03\x01\x10wired:scene/glxf\x05\x1a\x01\ +B\x07\x04\0\x06script\x03\x01\x01i\0\x01@\0\0\x01\x04\0\x13[constructor]script\x01\ +\x02\x01h\0\x01@\x02\x04self\x03\x05deltav\x01\0\x04\0\x15[method]script.update\x01\ +\x04\x04\x01\x12wired:script/types\x05\x1b\x04\x01\x1bexample:wired-player/scrip\ +t\x04\0\x0b\x0c\x01\0\x06script\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0d\ +wit-component\x070.208.1\x10wit-bindgen-rust\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wasm/example-wired-scene/src/bindings.rs b/wasm/example-wired-scene/src/bindings.rs index 2f3bf2537..ea06d0c42 100644 --- a/wasm/example-wired-scene/src/bindings.rs +++ b/wasm/example-wired-scene/src/bindings.rs @@ -1150,46 +1150,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -1198,20 +1192,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -1295,16 +1286,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -1320,535 +1311,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -1857,72 +1857,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -7118,8 +7087,8 @@ pub(crate) use __export_script_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:script:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 9096] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x8bF\x01A\x02\x01A)\x01\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 9071] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xf2E\x01A\x02\x01A)\x01\ B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\0\ \x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01r\ \x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ @@ -7155,169 +7124,169 @@ method]mesh.create-primitive\x01\x1a\x01@\x02\x04self\x12\x05value\x17\x01\0\x04 \0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\x06distal\x07\x08proximal\x07\x0ametac\ arpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\x01r\x09\x04side\x05\x05thumb\x09\x05\ index\x09\x06middle\x09\x04ring\x09\x06little\x09\x04palm\x07\x05wrist\x07\x05el\ -bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06origin\x01\x0borientation\x03\x04\0\x03\ -ray\x03\0\x0d\x01r\x03\x06origin\x01\x0borientation\x03\x06radiusv\x04\0\x03tip\x03\ -\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainp\ -ut-type\x03\0\x11\x01r\x04\x02idw\x05input\x12\x08distancev\x05ordery\x04\0\x0bi\ -nput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x06\x02\x03\0\x03\x0binput\ --event\x01B\x0a\x02\x03\x02\x01\x07\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-\ -handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\x04\ -\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\"[method]input-handler.handl\ -e-input\x01\x07\x03\x01\x13wired:input/handler\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\ -\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\ -\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\ -\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07\ -dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\ -\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04\ -self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05va\ -luev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0fri\ -gid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\ -\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\ -\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[met\ -hod]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\ -\x01\x13wired:physics/types\x05\x09\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput\ --handler\x02\x03\0\0\x09transform\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0arig\ -id-body\x01BE\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\ -\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0d\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x0f\x02\x03\0\0\x04vec2\x02\x03\0\x06\x04node\x01BY\x02\x03\ -\x02\x01\x10\x04\0\x04vec2\x03\0\0\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\x02\ -\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\ -\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cylinder\x03\x01\x04\0\x06cuboid\x03\x01\ -\x01r\x01\x0csubdivisions}\x04\0\x0asphere-ico\x03\0\x0b\x01r\x02\x07sectors}\x06\ -stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\ -\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\x03\x01\x01i\x08\x01@\x01\x04size\x01\ -\0\x12\x04\0\x16[constructor]rectangle\x01\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\ -\x04\0\x16[method]rectangle.size\x01\x15\x01@\x02\x04self\x14\x05value\x01\x01\0\ -\x04\0\x1a[method]rectangle.set-size\x01\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\ -\x04\0\x19[method]rectangle.to-mesh\x01\x18\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\ -\0\x19[method]rectangle.to-node\x01\x1a\x04\0![method]rectangle.to-physics-node\x01\ -\x1a\x01i\x09\x01@\x02\x06radiusv\x06heightv\0\x1b\x04\0\x15[constructor]cylinde\ -r\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\ -\x01@\x02\x04self\x1d\x05value\x7f\x01\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\ -\x01@\x01\x04self\x1d\0v\x04\0\x17[method]cylinder.height\x01\x20\x01@\x02\x04se\ -lf\x1d\x05valuev\x01\0\x04\0\x1b[method]cylinder.set-height\x01!\x04\0\x17[metho\ -d]cylinder.radius\x01\x20\x04\0\x1b[method]cylinder.set-radius\x01!\x01@\x01\x04\ -self\x1d\0}\x04\0\x1b[method]cylinder.resolution\x01\"\x01@\x02\x04self\x1d\x05v\ -alue}\x01\0\x04\0\x1f[method]cylinder.set-resolution\x01#\x04\0\x19[method]cylin\ -der.segments\x01\"\x04\0\x1d[method]cylinder.set-segments\x01#\x01@\x01\x04self\x1d\ -\0\x17\x04\0\x18[method]cylinder.to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18\ -[method]cylinder.to-node\x01%\x04\0\x20[method]cylinder.to-physics-node\x01%\x01\ -i\x0a\x01@\x01\x04size\x03\0&\x04\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\ -\x04self(\0\x03\x04\0\x13[method]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\ -\x01\0\x04\0\x17[method]cuboid.set-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[m\ -ethod]cuboid.to-mesh\x01+\x01@\x01\x04self(\0\x19\x04\0\x16[method]cuboid.to-nod\ -e\x01,\x04\0\x1e[method]cuboid.to-physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\ -\0-\x04\0\x16[static]sphere.new-ico\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01\ -h\x11\x01@\x01\x04self/\0v\x04\0\x15[method]sphere.radius\x010\x01@\x02\x04self/\ -\x05valuev\x01\0\x04\0\x19[method]sphere.set-radius\x011\x01@\x01\x04self/\0\x10\ -\x04\0\x13[method]sphere.kind\x012\x01@\x02\x04self/\x05value\x10\x01\0\x04\0\x17\ -[method]sphere.set-kind\x013\x01@\x01\x04self/\0\x17\x04\0\x16[method]sphere.to-\ -mesh\x014\x01@\x01\x04self/\0\x19\x04\0\x16[method]sphere.to-node\x015\x04\0\x1e\ -[method]sphere.to-physics-node\x015\x03\x01\x10unavi:shapes/api\x05\x12\x01B\x04\ -\x01m\x04\x05debug\x04info\x04warn\x05error\x04\0\x09log-level\x03\0\0\x01@\x02\x05\ -level\x01\x07messages\x01\0\x04\0\x03log\x01\x02\x03\x01\x0dwired:log/api\x05\x13\ -\x01B\x11\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\0\x01i\x01\x01r\x14\x04hips\x02\ -\x05spine\x02\x05chest\x02\x0bupper-chest\x02\x04neck\x02\x04head\x02\x0dleft-sh\ -oulder\x02\x0eleft-upper-arm\x02\x0eleft-lower-arm\x02\x09left-hand\x02\x0eright\ --shoulder\x02\x0fright-upper-arm\x02\x0fright-lower-arm\x02\x0aright-hand\x02\x0e\ -left-upper-leg\x02\x0eleft-lower-leg\x02\x09left-foot\x02\x0fright-upper-leg\x02\ -\x0fright-lower-leg\x02\x0aright-foot\x02\x04\0\x08skeleton\x03\0\x03\x04\0\x06p\ -layer\x03\x01\x01h\x05\x01@\x01\x04self\x06\0\x02\x04\0\x13[method]player.root\x01\ -\x07\x01@\x01\x04self\x06\0\x04\x04\0\x17[method]player.skeleton\x01\x08\x01i\x05\ -\x01p\x09\x01@\0\0\x0a\x04\0\x0clist-players\x01\x0b\x01@\0\0\x09\x04\0\x0clocal\ --player\x01\x0c\x03\x01\x10wired:player/api\x05\x14\x01B\x15\x02\x03\x02\x01\x11\ -\x04\0\x04node\x03\0\0\x04\0\x05scene\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x12[co\ -nstructor]scene\x01\x04\x01h\x02\x01@\x01\x04self\x05\0y\x04\0\x10[method]scene.\ -id\x01\x06\x01@\x01\x04self\x05\0s\x04\0\x12[method]scene.name\x01\x07\x01@\x02\x04\ -self\x05\x05values\x01\0\x04\0\x16[method]scene.set-name\x01\x08\x01i\x01\x01p\x09\ -\x01@\x01\x04self\x05\0\x0a\x04\0\x13[method]scene.nodes\x01\x0b\x01h\x01\x01@\x02\ -\x04self\x05\x05value\x0c\x01\0\x04\0\x16[method]scene.add-node\x01\x0d\x04\0\x19\ -[method]scene.remove-node\x01\x0d\x03\x01\x11wired:scene/scene\x05\x15\x02\x03\0\ -\x0a\x05scene\x01B5\x02\x03\x02\x01\x02\x04\0\x08material\x03\0\0\x02\x03\x02\x01\ -\x0a\x04\0\x04mesh\x03\0\x02\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x04\x02\x03\ -\x02\x01\x16\x04\0\x05scene\x03\0\x06\x04\0\x04gltf\x03\x01\x01i\x08\x01@\0\0\x09\ -\x04\0\x11[constructor]gltf\x01\x0a\x01h\x08\x01i\x01\x01p\x0c\x01@\x01\x04self\x0b\ -\0\x0d\x04\0\x1b[method]gltf.list-materials\x01\x0e\x01h\x01\x01@\x02\x04self\x0b\ -\x05value\x0f\x01\0\x04\0\x19[method]gltf.add-material\x01\x10\x04\0\x1c[method]\ -gltf.remove-material\x01\x10\x01i\x03\x01p\x11\x01@\x01\x04self\x0b\0\x12\x04\0\x18\ -[method]gltf.list-meshes\x01\x13\x01h\x03\x01@\x02\x04self\x0b\x05value\x14\x01\0\ -\x04\0\x15[method]gltf.add-mesh\x01\x15\x04\0\x18[method]gltf.remove-mesh\x01\x15\ -\x01i\x05\x01p\x16\x01@\x01\x04self\x0b\0\x17\x04\0\x17[method]gltf.list-nodes\x01\ -\x18\x01h\x05\x01@\x02\x04self\x0b\x05value\x19\x01\0\x04\0\x15[method]gltf.add-\ -node\x01\x1a\x04\0\x18[method]gltf.remove-node\x01\x1a\x01i\x07\x01p\x1b\x01@\x01\ -\x04self\x0b\0\x1c\x04\0\x18[method]gltf.list-scenes\x01\x1d\x01h\x07\x01@\x02\x04\ -self\x0b\x05value\x1e\x01\0\x04\0\x16[method]gltf.add-scene\x01\x1f\x04\0\x19[me\ -thod]gltf.remove-scene\x01\x1f\x01k\x1b\x01@\x01\x04self\x0b\0\x20\x04\0\x19[met\ -hod]gltf.active-scene\x01!\x01k\x1e\x01@\x02\x04self\x0b\x05value\"\x01\0\x04\0\x1d\ -[method]gltf.set-active-scene\x01#\x04\0\x1a[method]gltf.default-scene\x01!\x04\0\ -\x1e[method]gltf.set-default-scene\x01\x1f\x03\x01\x10wired:scene/gltf\x05\x17\x02\ -\x03\0\x0b\x04gltf\x01Bt\x02\x03\x02\x01\x18\x04\0\x04gltf\x03\0\0\x02\x03\x02\x01\ -\x11\x04\0\x04node\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x04\ -\0\x04glxf\x03\x01\x04\0\x0aasset-gltf\x03\x01\x04\0\x0aasset-glxf\x03\x01\x01i\x07\ -\x01i\x08\x01q\x02\x04gltf\x01\x09\0\x04glxf\x01\x0a\0\x04\0\x05asset\x03\0\x0b\x01\ -h\x07\x01h\x08\x01q\x02\x04gltf\x01\x0d\0\x04glxf\x01\x0e\0\x04\0\x0casset-borro\ -w\x03\0\x0f\x04\0\x09glxf-node\x03\x01\x01i\x11\x01p\x12\x01q\x02\x05asset\x01\x0c\ -\0\x05nodes\x01\x13\0\x04\0\x08children\x03\0\x14\x01h\x11\x01p\x16\x01q\x02\x05\ -asset\x01\x10\0\x05nodes\x01\x17\0\x04\0\x0fchildren-borrow\x03\0\x18\x04\0\x0ag\ -lxf-scene\x03\x01\x01i\x06\x01@\0\0\x1b\x04\0\x11[constructor]glxf\x01\x1c\x01h\x06\ -\x01p\x0c\x01@\x01\x04self\x1d\0\x1e\x04\0\x18[method]glxf.list-assets\x01\x1f\x01\ -@\x02\x04self\x1d\x05value\x10\x01\0\x04\0\x16[method]glxf.add-asset\x01\x20\x04\ -\0\x19[method]glxf.remove-asset\x01\x20\x01@\x01\x04self\x1d\0\x13\x04\0\x17[met\ -hod]glxf.list-nodes\x01!\x01@\x02\x04self\x1d\x05value\x16\x01\0\x04\0\x15[metho\ -d]glxf.add-node\x01\"\x04\0\x18[method]glxf.remove-node\x01\"\x01i\x1a\x01p#\x01\ -@\x01\x04self\x1d\0$\x04\0\x18[method]glxf.list-scenes\x01%\x01h\x1a\x01@\x02\x04\ -self\x1d\x05value&\x01\0\x04\0\x16[method]glxf.add-scene\x01'\x04\0\x19[method]g\ -lxf.remove-scene\x01'\x01k#\x01@\x01\x04self\x1d\0(\x04\0\x19[method]glxf.active\ --scene\x01)\x01k&\x01@\x02\x04self\x1d\x05value*\x01\0\x04\0\x1d[method]glxf.set\ --active-scene\x01+\x04\0\x1a[method]glxf.default-scene\x01)\x04\0\x1e[method]glx\ -f.set-default-scene\x01'\x01h\x01\x01@\x01\x08document,\0\x09\x04\0\x17[construc\ -tor]asset-gltf\x01-\x01i\x01\x01@\x01\x04self\x0d\0.\x04\0\x1b[method]asset-gltf\ -.document\x01/\x01i\x03\x01p0\x01@\x01\x04self\x0d\01\x04\0\x1d[method]asset-glt\ -f.list-nodes\x012\x01h\x03\x01@\x02\x04self\x0d\x05value3\x01\0\x04\0\x1b[method\ -]asset-gltf.add-node\x014\x04\0\x1e[method]asset-gltf.remove-node\x014\x01@\x01\x08\ -document\x1d\0\x0a\x04\0\x17[constructor]asset-glxf\x015\x01@\x01\x04self\x0e\0\x1b\ -\x04\0\x1b[method]asset-glxf.document\x016\x01@\x01\x04self\x0e\0\x13\x04\0\x1d[\ -method]asset-glxf.list-nodes\x017\x01@\x02\x04self\x0e\x05value\x16\x01\0\x04\0\x1b\ -[method]asset-glxf.add-node\x018\x04\0\x1e[method]asset-glxf.remove-node\x018\x01\ -@\0\0\x12\x04\0\x16[constructor]glxf-node\x019\x01@\x01\x04self\x16\0y\x04\0\x14\ -[method]glxf-node.id\x01:\x01@\x01\x04self\x16\0s\x04\0\x16[method]glxf-node.nam\ -e\x01;\x01@\x02\x04self\x16\x05values\x01\0\x04\0\x1a[method]glxf-node.set-name\x01\ -<\x01@\x01\x04self\x16\0\x05\x04\0\x1b[method]glxf-node.transform\x01=\x01@\x02\x04\ -self\x16\x05value\x05\x01\0\x04\0\x1f[method]glxf-node.set-transform\x01>\x01k\x12\ -\x01@\x01\x04self\x16\0?\x04\0\x18[method]glxf-node.parent\x01@\x01k\x15\x01@\x01\ -\x04self\x16\0\xc1\0\x04\0\x1a[method]glxf-node.children\x01B\x01k\x19\x01@\x02\x04\ -self\x16\x05value\xc3\0\x01\0\x04\0\x1e[method]glxf-node.set-children\x01D\x01@\0\ -\0#\x04\0\x17[constructor]glxf-scene\x01E\x01@\x01\x04self&\0y\x04\0\x15[method]\ -glxf-scene.id\x01F\x01@\x01\x04self&\0s\x04\0\x17[method]glxf-scene.name\x01G\x01\ -@\x02\x04self&\x05values\x01\0\x04\0\x1b[method]glxf-scene.set-name\x01H\x01@\x01\ -\x04self&\0\x13\x04\0\x18[method]glxf-scene.nodes\x01I\x01@\x02\x04self&\x04node\ -\x16\x01\0\x04\0\x1b[method]glxf-scene.add-node\x01J\x04\0\x1e[method]glxf-scene\ -.remove-node\x01J\x04\0\x08get-root\x01\x1c\x03\x01\x10wired:scene/glxf\x05\x19\x01\ -B\x07\x04\0\x06script\x03\x01\x01i\0\x01@\0\0\x01\x04\0\x13[constructor]script\x01\ -\x02\x01h\0\x01@\x02\x04self\x03\x05deltav\x01\0\x04\0\x15[method]script.update\x01\ -\x04\x04\x01\x12wired:script/types\x05\x1a\x04\x01\x1aexample:wired-scene/script\ -\x04\0\x0b\x0c\x01\0\x06script\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0d\ -wit-component\x070.208.1\x10wit-bindgen-rust\x060.25.0"; +bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0borientation\x03\x06origin\x01\x04\0\x03\ +ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x04\0\x0ainput-data\x03\ +\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\0\x04\0\x0cinput-action\x03\0\x11\x01\ +r\x03\x02idw\x06action\x12\x04data\x10\x04\0\x0binput-event\x03\0\x13\x03\x01\x11\ +wired:input/types\x05\x06\x02\x03\0\x03\x0binput-event\x01B\x0a\x02\x03\x02\x01\x07\ +\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\ +\x04\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\ +\0\x06\x04\0\x1a[method]input-handler.next\x01\x07\x03\x01\x13wired:input/handle\ +r\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\ +\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06\ +cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\ +\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0f\ +rigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constru\ +ctor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider\ +.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.\ +set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[con\ +structor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method\ +]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\0\x1d[met\ +hod]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\x12\x04\ +\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/types\x05\x09\ +\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput-handler\x02\x03\0\0\x09transform\x02\ +\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BE\x02\x03\x02\x01\x0a\x04\ +\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\x02\x03\x02\ +\x01\x0c\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0d\x04\0\x08collider\x03\0\ +\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x0f\x02\x03\0\ +\0\x04vec2\x02\x03\0\x06\x04node\x01BY\x02\x03\x02\x01\x10\x04\0\x04vec2\x03\0\0\ +\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\ +\0\x04\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x06\x04\0\x09rectangle\x03\x01\x04\ +\0\x08cylinder\x03\x01\x04\0\x06cuboid\x03\x01\x01r\x01\x0csubdivisions}\x04\0\x0a\ +sphere-ico\x03\0\x0b\x01r\x02\x07sectors}\x06stacks}\x04\0\x09sphere-uv\x03\0\x0d\ +\x01q\x02\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\0\x0bsphere-kind\x03\0\x0f\x04\0\x06\ +sphere\x03\x01\x01i\x08\x01@\x01\x04size\x01\0\x12\x04\0\x16[constructor]rectang\ +le\x01\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\x04\0\x16[method]rectangle.size\x01\ +\x15\x01@\x02\x04self\x14\x05value\x01\x01\0\x04\0\x1a[method]rectangle.set-size\ +\x01\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\x04\0\x19[method]rectangle.to-mesh\x01\ +\x18\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\0\x19[method]rectangle.to-node\x01\x1a\ +\x04\0![method]rectangle.to-physics-node\x01\x1a\x01i\x09\x01@\x02\x06radiusv\x06\ +heightv\0\x1b\x04\0\x15[constructor]cylinder\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\ +\0\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\x01@\x02\x04self\x1d\x05value\x7f\x01\ +\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\x01@\x01\x04self\x1d\0v\x04\0\x17[m\ +ethod]cylinder.height\x01\x20\x01@\x02\x04self\x1d\x05valuev\x01\0\x04\0\x1b[met\ +hod]cylinder.set-height\x01!\x04\0\x17[method]cylinder.radius\x01\x20\x04\0\x1b[\ +method]cylinder.set-radius\x01!\x01@\x01\x04self\x1d\0}\x04\0\x1b[method]cylinde\ +r.resolution\x01\"\x01@\x02\x04self\x1d\x05value}\x01\0\x04\0\x1f[method]cylinde\ +r.set-resolution\x01#\x04\0\x19[method]cylinder.segments\x01\"\x04\0\x1d[method]\ +cylinder.set-segments\x01#\x01@\x01\x04self\x1d\0\x17\x04\0\x18[method]cylinder.\ +to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18[method]cylinder.to-node\x01%\x04\ +\0\x20[method]cylinder.to-physics-node\x01%\x01i\x0a\x01@\x01\x04size\x03\0&\x04\ +\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\x04self(\0\x03\x04\0\x13[method\ +]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\x01\0\x04\0\x17[method]cuboid.s\ +et-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[method]cuboid.to-mesh\x01+\x01@\x01\ +\x04self(\0\x19\x04\0\x16[method]cuboid.to-node\x01,\x04\0\x1e[method]cuboid.to-\ +physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\0-\x04\0\x16[static]sphere.new-ic\ +o\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01h\x11\x01@\x01\x04self/\0v\x04\0\x15\ +[method]sphere.radius\x010\x01@\x02\x04self/\x05valuev\x01\0\x04\0\x19[method]sp\ +here.set-radius\x011\x01@\x01\x04self/\0\x10\x04\0\x13[method]sphere.kind\x012\x01\ +@\x02\x04self/\x05value\x10\x01\0\x04\0\x17[method]sphere.set-kind\x013\x01@\x01\ +\x04self/\0\x17\x04\0\x16[method]sphere.to-mesh\x014\x01@\x01\x04self/\0\x19\x04\ +\0\x16[method]sphere.to-node\x015\x04\0\x1e[method]sphere.to-physics-node\x015\x03\ +\x01\x10unavi:shapes/api\x05\x12\x01B\x04\x01m\x04\x05debug\x04info\x04warn\x05e\ +rror\x04\0\x09log-level\x03\0\0\x01@\x02\x05level\x01\x07messages\x01\0\x04\0\x03\ +log\x01\x02\x03\x01\x0dwired:log/api\x05\x13\x01B\x11\x02\x03\x02\x01\x11\x04\0\x04\ +node\x03\0\0\x01i\x01\x01r\x14\x04hips\x02\x05spine\x02\x05chest\x02\x0bupper-ch\ +est\x02\x04neck\x02\x04head\x02\x0dleft-shoulder\x02\x0eleft-upper-arm\x02\x0ele\ +ft-lower-arm\x02\x09left-hand\x02\x0eright-shoulder\x02\x0fright-upper-arm\x02\x0f\ +right-lower-arm\x02\x0aright-hand\x02\x0eleft-upper-leg\x02\x0eleft-lower-leg\x02\ +\x09left-foot\x02\x0fright-upper-leg\x02\x0fright-lower-leg\x02\x0aright-foot\x02\ +\x04\0\x08skeleton\x03\0\x03\x04\0\x06player\x03\x01\x01h\x05\x01@\x01\x04self\x06\ +\0\x02\x04\0\x13[method]player.root\x01\x07\x01@\x01\x04self\x06\0\x04\x04\0\x17\ +[method]player.skeleton\x01\x08\x01i\x05\x01p\x09\x01@\0\0\x0a\x04\0\x0clist-pla\ +yers\x01\x0b\x01@\0\0\x09\x04\0\x0clocal-player\x01\x0c\x03\x01\x10wired:player/\ +api\x05\x14\x01B\x15\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\0\x04\0\x05scene\x03\ +\x01\x01i\x02\x01@\0\0\x03\x04\0\x12[constructor]scene\x01\x04\x01h\x02\x01@\x01\ +\x04self\x05\0y\x04\0\x10[method]scene.id\x01\x06\x01@\x01\x04self\x05\0s\x04\0\x12\ +[method]scene.name\x01\x07\x01@\x02\x04self\x05\x05values\x01\0\x04\0\x16[method\ +]scene.set-name\x01\x08\x01i\x01\x01p\x09\x01@\x01\x04self\x05\0\x0a\x04\0\x13[m\ +ethod]scene.nodes\x01\x0b\x01h\x01\x01@\x02\x04self\x05\x05value\x0c\x01\0\x04\0\ +\x16[method]scene.add-node\x01\x0d\x04\0\x19[method]scene.remove-node\x01\x0d\x03\ +\x01\x11wired:scene/scene\x05\x15\x02\x03\0\x0a\x05scene\x01B5\x02\x03\x02\x01\x02\ +\x04\0\x08material\x03\0\0\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x02\x02\x03\x02\ +\x01\x11\x04\0\x04node\x03\0\x04\x02\x03\x02\x01\x16\x04\0\x05scene\x03\0\x06\x04\ +\0\x04gltf\x03\x01\x01i\x08\x01@\0\0\x09\x04\0\x11[constructor]gltf\x01\x0a\x01h\ +\x08\x01i\x01\x01p\x0c\x01@\x01\x04self\x0b\0\x0d\x04\0\x1b[method]gltf.list-mat\ +erials\x01\x0e\x01h\x01\x01@\x02\x04self\x0b\x05value\x0f\x01\0\x04\0\x19[method\ +]gltf.add-material\x01\x10\x04\0\x1c[method]gltf.remove-material\x01\x10\x01i\x03\ +\x01p\x11\x01@\x01\x04self\x0b\0\x12\x04\0\x18[method]gltf.list-meshes\x01\x13\x01\ +h\x03\x01@\x02\x04self\x0b\x05value\x14\x01\0\x04\0\x15[method]gltf.add-mesh\x01\ +\x15\x04\0\x18[method]gltf.remove-mesh\x01\x15\x01i\x05\x01p\x16\x01@\x01\x04sel\ +f\x0b\0\x17\x04\0\x17[method]gltf.list-nodes\x01\x18\x01h\x05\x01@\x02\x04self\x0b\ +\x05value\x19\x01\0\x04\0\x15[method]gltf.add-node\x01\x1a\x04\0\x18[method]gltf\ +.remove-node\x01\x1a\x01i\x07\x01p\x1b\x01@\x01\x04self\x0b\0\x1c\x04\0\x18[meth\ +od]gltf.list-scenes\x01\x1d\x01h\x07\x01@\x02\x04self\x0b\x05value\x1e\x01\0\x04\ +\0\x16[method]gltf.add-scene\x01\x1f\x04\0\x19[method]gltf.remove-scene\x01\x1f\x01\ +k\x1b\x01@\x01\x04self\x0b\0\x20\x04\0\x19[method]gltf.active-scene\x01!\x01k\x1e\ +\x01@\x02\x04self\x0b\x05value\"\x01\0\x04\0\x1d[method]gltf.set-active-scene\x01\ +#\x04\0\x1a[method]gltf.default-scene\x01!\x04\0\x1e[method]gltf.set-default-sce\ +ne\x01\x1f\x03\x01\x10wired:scene/gltf\x05\x17\x02\x03\0\x0b\x04gltf\x01Bt\x02\x03\ +\x02\x01\x18\x04\0\x04gltf\x03\0\0\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x02\x02\ +\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x04\0\x04glxf\x03\x01\x04\0\x0aass\ +et-gltf\x03\x01\x04\0\x0aasset-glxf\x03\x01\x01i\x07\x01i\x08\x01q\x02\x04gltf\x01\ +\x09\0\x04glxf\x01\x0a\0\x04\0\x05asset\x03\0\x0b\x01h\x07\x01h\x08\x01q\x02\x04\ +gltf\x01\x0d\0\x04glxf\x01\x0e\0\x04\0\x0casset-borrow\x03\0\x0f\x04\0\x09glxf-n\ +ode\x03\x01\x01i\x11\x01p\x12\x01q\x02\x05asset\x01\x0c\0\x05nodes\x01\x13\0\x04\ +\0\x08children\x03\0\x14\x01h\x11\x01p\x16\x01q\x02\x05asset\x01\x10\0\x05nodes\x01\ +\x17\0\x04\0\x0fchildren-borrow\x03\0\x18\x04\0\x0aglxf-scene\x03\x01\x01i\x06\x01\ +@\0\0\x1b\x04\0\x11[constructor]glxf\x01\x1c\x01h\x06\x01p\x0c\x01@\x01\x04self\x1d\ +\0\x1e\x04\0\x18[method]glxf.list-assets\x01\x1f\x01@\x02\x04self\x1d\x05value\x10\ +\x01\0\x04\0\x16[method]glxf.add-asset\x01\x20\x04\0\x19[method]glxf.remove-asse\ +t\x01\x20\x01@\x01\x04self\x1d\0\x13\x04\0\x17[method]glxf.list-nodes\x01!\x01@\x02\ +\x04self\x1d\x05value\x16\x01\0\x04\0\x15[method]glxf.add-node\x01\"\x04\0\x18[m\ +ethod]glxf.remove-node\x01\"\x01i\x1a\x01p#\x01@\x01\x04self\x1d\0$\x04\0\x18[me\ +thod]glxf.list-scenes\x01%\x01h\x1a\x01@\x02\x04self\x1d\x05value&\x01\0\x04\0\x16\ +[method]glxf.add-scene\x01'\x04\0\x19[method]glxf.remove-scene\x01'\x01k#\x01@\x01\ +\x04self\x1d\0(\x04\0\x19[method]glxf.active-scene\x01)\x01k&\x01@\x02\x04self\x1d\ +\x05value*\x01\0\x04\0\x1d[method]glxf.set-active-scene\x01+\x04\0\x1a[method]gl\ +xf.default-scene\x01)\x04\0\x1e[method]glxf.set-default-scene\x01'\x01h\x01\x01@\ +\x01\x08document,\0\x09\x04\0\x17[constructor]asset-gltf\x01-\x01i\x01\x01@\x01\x04\ +self\x0d\0.\x04\0\x1b[method]asset-gltf.document\x01/\x01i\x03\x01p0\x01@\x01\x04\ +self\x0d\01\x04\0\x1d[method]asset-gltf.list-nodes\x012\x01h\x03\x01@\x02\x04sel\ +f\x0d\x05value3\x01\0\x04\0\x1b[method]asset-gltf.add-node\x014\x04\0\x1e[method\ +]asset-gltf.remove-node\x014\x01@\x01\x08document\x1d\0\x0a\x04\0\x17[constructo\ +r]asset-glxf\x015\x01@\x01\x04self\x0e\0\x1b\x04\0\x1b[method]asset-glxf.documen\ +t\x016\x01@\x01\x04self\x0e\0\x13\x04\0\x1d[method]asset-glxf.list-nodes\x017\x01\ +@\x02\x04self\x0e\x05value\x16\x01\0\x04\0\x1b[method]asset-glxf.add-node\x018\x04\ +\0\x1e[method]asset-glxf.remove-node\x018\x01@\0\0\x12\x04\0\x16[constructor]glx\ +f-node\x019\x01@\x01\x04self\x16\0y\x04\0\x14[method]glxf-node.id\x01:\x01@\x01\x04\ +self\x16\0s\x04\0\x16[method]glxf-node.name\x01;\x01@\x02\x04self\x16\x05values\x01\ +\0\x04\0\x1a[method]glxf-node.set-name\x01<\x01@\x01\x04self\x16\0\x05\x04\0\x1b\ +[method]glxf-node.transform\x01=\x01@\x02\x04self\x16\x05value\x05\x01\0\x04\0\x1f\ +[method]glxf-node.set-transform\x01>\x01k\x12\x01@\x01\x04self\x16\0?\x04\0\x18[\ +method]glxf-node.parent\x01@\x01k\x15\x01@\x01\x04self\x16\0\xc1\0\x04\0\x1a[met\ +hod]glxf-node.children\x01B\x01k\x19\x01@\x02\x04self\x16\x05value\xc3\0\x01\0\x04\ +\0\x1e[method]glxf-node.set-children\x01D\x01@\0\0#\x04\0\x17[constructor]glxf-s\ +cene\x01E\x01@\x01\x04self&\0y\x04\0\x15[method]glxf-scene.id\x01F\x01@\x01\x04s\ +elf&\0s\x04\0\x17[method]glxf-scene.name\x01G\x01@\x02\x04self&\x05values\x01\0\x04\ +\0\x1b[method]glxf-scene.set-name\x01H\x01@\x01\x04self&\0\x13\x04\0\x18[method]\ +glxf-scene.nodes\x01I\x01@\x02\x04self&\x04node\x16\x01\0\x04\0\x1b[method]glxf-\ +scene.add-node\x01J\x04\0\x1e[method]glxf-scene.remove-node\x01J\x04\0\x08get-ro\ +ot\x01\x1c\x03\x01\x10wired:scene/glxf\x05\x19\x01B\x07\x04\0\x06script\x03\x01\x01\ +i\0\x01@\0\0\x01\x04\0\x13[constructor]script\x01\x02\x01h\0\x01@\x02\x04self\x03\ +\x05deltav\x01\0\x04\0\x15[method]script.update\x01\x04\x04\x01\x12wired:script/\ +types\x05\x1a\x04\x01\x1aexample:wired-scene/script\x04\0\x0b\x0c\x01\0\x06scrip\ +t\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10\ +wit-bindgen-rust\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wasm/test-wired-physics/src/bindings.rs b/wasm/test-wired-physics/src/bindings.rs index 5a5c0ac80..3359003c6 100644 --- a/wasm/test-wired-physics/src/bindings.rs +++ b/wasm/test-wired-physics/src/bindings.rs @@ -111,46 +111,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -159,20 +153,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -256,16 +247,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -281,535 +272,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -818,72 +818,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -5998,8 +5967,8 @@ pub(crate) use __export_script_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:script:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 7450] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x9d9\x01A\x02\x01A&\x01\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 7425] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x849\x01A\x02\x01A&\x01\ B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\0\ \x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01r\ \x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ @@ -6011,159 +5980,159 @@ B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\ ation\x01\x08rotation\x03\x06radiusv\x04\0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\ \x06distal\x07\x08proximal\x07\x0ametacarpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\ \x01r\x09\x04side\x05\x05thumb\x09\x05index\x09\x06middle\x09\x04ring\x09\x06lit\ -tle\x09\x04palm\x07\x05wrist\x07\x05elbow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06\ -origin\x01\x0borientation\x03\x04\0\x03ray\x03\0\x0d\x01r\x03\x06origin\x01\x0bo\ -rientation\x03\x06radiusv\x04\0\x03tip\x03\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03r\ -ay\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainput-type\x03\0\x11\x01r\x04\x02idw\x05i\ -nput\x12\x08distancev\x05ordery\x04\0\x0binput-event\x03\0\x13\x03\x01\x11wired:\ -input/types\x05\x03\x02\x03\0\x01\x0binput-event\x01B\x0a\x02\x03\x02\x01\x04\x04\ -\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\ -\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\ -\x06\x04\0\"[method]input-handler.handle-input\x01\x07\x03\x01\x13wired:input/ha\ -ndler\x05\x05\x01B\x04\x01m\x04\x05debug\x04info\x04warn\x05error\x04\0\x09log-l\ -evel\x03\0\0\x01@\x02\x05level\x01\x07messages\x01\0\x04\0\x03log\x01\x02\x03\x01\ -\x0dwired:log/api\x05\x06\x01B\x1c\x02\x03\x02\x01\x01\x04\0\x04vec3\x03\0\0\x04\ -\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\ -\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\ -\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09\ -kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\ -\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18\ -[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[\ -method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\ -\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\ -\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\ -\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\ -\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/typ\ -es\x05\x07\x01B\x13\x01r\x04\x01rv\x01gv\x01bv\x01av\x04\0\x05color\x03\0\0\x04\0\ -\x08material\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x15[constructor]material\x01\x04\ -\x01h\x02\x01@\x01\x04self\x05\0y\x04\0\x13[method]material.id\x01\x06\x01@\x01\x04\ -self\x05\0\x03\x04\0\x14[method]material.ref\x01\x07\x01@\x01\x04self\x05\0s\x04\ -\0\x15[method]material.name\x01\x08\x01@\x02\x04self\x05\x05values\x01\0\x04\0\x19\ -[method]material.set-name\x01\x09\x01@\x01\x04self\x05\0\x01\x04\0\x16[method]ma\ -terial.color\x01\x0a\x01@\x02\x04self\x05\x05value\x01\x01\0\x04\0\x1a[method]ma\ -terial.set-color\x01\x0b\x03\x01\x14wired:scene/material\x05\x08\x02\x03\0\x05\x08\ -material\x01B+\x02\x03\x02\x01\x09\x04\0\x08material\x03\0\0\x04\0\x09primitive\x03\ -\x01\x04\0\x04mesh\x03\x01\x01h\x02\x01@\x01\x04self\x04\0y\x04\0\x14[method]pri\ -mitive.id\x01\x05\x01i\x01\x01k\x06\x01@\x01\x04self\x04\0\x07\x04\0\x1a[method]\ -primitive.material\x01\x08\x01h\x01\x01k\x09\x01@\x02\x04self\x04\x05value\x0a\x01\ -\0\x04\0\x1e[method]primitive.set-material\x01\x0b\x01py\x01@\x02\x04self\x04\x05\ -value\x0c\x01\0\x04\0\x1d[method]primitive.set-indices\x01\x0d\x01pv\x01@\x02\x04\ -self\x04\x05value\x0e\x01\0\x04\0\x1d[method]primitive.set-normals\x01\x0f\x04\0\ -\x1f[method]primitive.set-positions\x01\x0f\x04\0\x19[method]primitive.set-uvs\x01\ -\x0f\x01i\x03\x01@\0\0\x10\x04\0\x11[constructor]mesh\x01\x11\x01h\x03\x01@\x01\x04\ -self\x12\0y\x04\0\x0f[method]mesh.id\x01\x13\x01@\x01\x04self\x12\0\x10\x04\0\x10\ -[method]mesh.ref\x01\x14\x01@\x01\x04self\x12\0s\x04\0\x11[method]mesh.name\x01\x15\ -\x01@\x02\x04self\x12\x05values\x01\0\x04\0\x15[method]mesh.set-name\x01\x16\x01\ -i\x02\x01p\x17\x01@\x01\x04self\x12\0\x18\x04\0\x1c[method]mesh.list-primitives\x01\ -\x19\x01@\x01\x04self\x12\0\x17\x04\0\x1d[method]mesh.create-primitive\x01\x1a\x01\ -@\x02\x04self\x12\x05value\x17\x01\0\x04\0\x1d[method]mesh.remove-primitive\x01\x1b\ -\x03\x01\x10wired:scene/mesh\x05\x0a\x02\x03\0\x06\x04mesh\x02\x03\0\x02\x0dinpu\ -t-handler\x02\x03\0\0\x09transform\x02\x03\0\x04\x08collider\x02\x03\0\x04\x0ari\ -gid-body\x01BE\x02\x03\x02\x01\x0b\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0c\x04\ -\0\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0d\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0e\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0f\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x10\x02\x03\0\x07\x04node\x01B\x11\x02\x03\x02\x01\x11\x04\0\ -\x04node\x03\0\0\x01i\x01\x01r\x14\x04hips\x02\x05spine\x02\x05chest\x02\x0buppe\ -r-chest\x02\x04neck\x02\x04head\x02\x0dleft-shoulder\x02\x0eleft-upper-arm\x02\x0e\ -left-lower-arm\x02\x09left-hand\x02\x0eright-shoulder\x02\x0fright-upper-arm\x02\ -\x0fright-lower-arm\x02\x0aright-hand\x02\x0eleft-upper-leg\x02\x0eleft-lower-le\ -g\x02\x09left-foot\x02\x0fright-upper-leg\x02\x0fright-lower-leg\x02\x0aright-fo\ -ot\x02\x04\0\x08skeleton\x03\0\x03\x04\0\x06player\x03\x01\x01h\x05\x01@\x01\x04\ -self\x06\0\x02\x04\0\x13[method]player.root\x01\x07\x01@\x01\x04self\x06\0\x04\x04\ -\0\x17[method]player.skeleton\x01\x08\x01i\x05\x01p\x09\x01@\0\0\x0a\x04\0\x0cli\ -st-players\x01\x0b\x01@\0\0\x09\x04\0\x0clocal-player\x01\x0c\x03\x01\x10wired:p\ -layer/api\x05\x12\x01B\x15\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\0\x04\0\x05sc\ -ene\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x12[constructor]scene\x01\x04\x01h\x02\x01\ -@\x01\x04self\x05\0y\x04\0\x10[method]scene.id\x01\x06\x01@\x01\x04self\x05\0s\x04\ -\0\x12[method]scene.name\x01\x07\x01@\x02\x04self\x05\x05values\x01\0\x04\0\x16[\ -method]scene.set-name\x01\x08\x01i\x01\x01p\x09\x01@\x01\x04self\x05\0\x0a\x04\0\ -\x13[method]scene.nodes\x01\x0b\x01h\x01\x01@\x02\x04self\x05\x05value\x0c\x01\0\ -\x04\0\x16[method]scene.add-node\x01\x0d\x04\0\x19[method]scene.remove-node\x01\x0d\ -\x03\x01\x11wired:scene/scene\x05\x13\x02\x03\0\x09\x05scene\x01B5\x02\x03\x02\x01\ -\x09\x04\0\x08material\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x04mesh\x03\0\x02\x02\x03\ -\x02\x01\x11\x04\0\x04node\x03\0\x04\x02\x03\x02\x01\x14\x04\0\x05scene\x03\0\x06\ -\x04\0\x04gltf\x03\x01\x01i\x08\x01@\0\0\x09\x04\0\x11[constructor]gltf\x01\x0a\x01\ -h\x08\x01i\x01\x01p\x0c\x01@\x01\x04self\x0b\0\x0d\x04\0\x1b[method]gltf.list-ma\ -terials\x01\x0e\x01h\x01\x01@\x02\x04self\x0b\x05value\x0f\x01\0\x04\0\x19[metho\ -d]gltf.add-material\x01\x10\x04\0\x1c[method]gltf.remove-material\x01\x10\x01i\x03\ -\x01p\x11\x01@\x01\x04self\x0b\0\x12\x04\0\x18[method]gltf.list-meshes\x01\x13\x01\ -h\x03\x01@\x02\x04self\x0b\x05value\x14\x01\0\x04\0\x15[method]gltf.add-mesh\x01\ -\x15\x04\0\x18[method]gltf.remove-mesh\x01\x15\x01i\x05\x01p\x16\x01@\x01\x04sel\ -f\x0b\0\x17\x04\0\x17[method]gltf.list-nodes\x01\x18\x01h\x05\x01@\x02\x04self\x0b\ -\x05value\x19\x01\0\x04\0\x15[method]gltf.add-node\x01\x1a\x04\0\x18[method]gltf\ -.remove-node\x01\x1a\x01i\x07\x01p\x1b\x01@\x01\x04self\x0b\0\x1c\x04\0\x18[meth\ -od]gltf.list-scenes\x01\x1d\x01h\x07\x01@\x02\x04self\x0b\x05value\x1e\x01\0\x04\ -\0\x16[method]gltf.add-scene\x01\x1f\x04\0\x19[method]gltf.remove-scene\x01\x1f\x01\ -k\x1b\x01@\x01\x04self\x0b\0\x20\x04\0\x19[method]gltf.active-scene\x01!\x01k\x1e\ -\x01@\x02\x04self\x0b\x05value\"\x01\0\x04\0\x1d[method]gltf.set-active-scene\x01\ -#\x04\0\x1a[method]gltf.default-scene\x01!\x04\0\x1e[method]gltf.set-default-sce\ -ne\x01\x1f\x03\x01\x10wired:scene/gltf\x05\x15\x02\x03\0\x0a\x04gltf\x01Bt\x02\x03\ -\x02\x01\x16\x04\0\x04gltf\x03\0\0\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x02\x02\ -\x03\x02\x01\x0d\x04\0\x09transform\x03\0\x04\x04\0\x04glxf\x03\x01\x04\0\x0aass\ -et-gltf\x03\x01\x04\0\x0aasset-glxf\x03\x01\x01i\x07\x01i\x08\x01q\x02\x04gltf\x01\ -\x09\0\x04glxf\x01\x0a\0\x04\0\x05asset\x03\0\x0b\x01h\x07\x01h\x08\x01q\x02\x04\ -gltf\x01\x0d\0\x04glxf\x01\x0e\0\x04\0\x0casset-borrow\x03\0\x0f\x04\0\x09glxf-n\ -ode\x03\x01\x01i\x11\x01p\x12\x01q\x02\x05asset\x01\x0c\0\x05nodes\x01\x13\0\x04\ -\0\x08children\x03\0\x14\x01h\x11\x01p\x16\x01q\x02\x05asset\x01\x10\0\x05nodes\x01\ -\x17\0\x04\0\x0fchildren-borrow\x03\0\x18\x04\0\x0aglxf-scene\x03\x01\x01i\x06\x01\ -@\0\0\x1b\x04\0\x11[constructor]glxf\x01\x1c\x01h\x06\x01p\x0c\x01@\x01\x04self\x1d\ -\0\x1e\x04\0\x18[method]glxf.list-assets\x01\x1f\x01@\x02\x04self\x1d\x05value\x10\ -\x01\0\x04\0\x16[method]glxf.add-asset\x01\x20\x04\0\x19[method]glxf.remove-asse\ -t\x01\x20\x01@\x01\x04self\x1d\0\x13\x04\0\x17[method]glxf.list-nodes\x01!\x01@\x02\ -\x04self\x1d\x05value\x16\x01\0\x04\0\x15[method]glxf.add-node\x01\"\x04\0\x18[m\ -ethod]glxf.remove-node\x01\"\x01i\x1a\x01p#\x01@\x01\x04self\x1d\0$\x04\0\x18[me\ -thod]glxf.list-scenes\x01%\x01h\x1a\x01@\x02\x04self\x1d\x05value&\x01\0\x04\0\x16\ -[method]glxf.add-scene\x01'\x04\0\x19[method]glxf.remove-scene\x01'\x01k#\x01@\x01\ -\x04self\x1d\0(\x04\0\x19[method]glxf.active-scene\x01)\x01k&\x01@\x02\x04self\x1d\ -\x05value*\x01\0\x04\0\x1d[method]glxf.set-active-scene\x01+\x04\0\x1a[method]gl\ -xf.default-scene\x01)\x04\0\x1e[method]glxf.set-default-scene\x01'\x01h\x01\x01@\ -\x01\x08document,\0\x09\x04\0\x17[constructor]asset-gltf\x01-\x01i\x01\x01@\x01\x04\ -self\x0d\0.\x04\0\x1b[method]asset-gltf.document\x01/\x01i\x03\x01p0\x01@\x01\x04\ -self\x0d\01\x04\0\x1d[method]asset-gltf.list-nodes\x012\x01h\x03\x01@\x02\x04sel\ -f\x0d\x05value3\x01\0\x04\0\x1b[method]asset-gltf.add-node\x014\x04\0\x1e[method\ -]asset-gltf.remove-node\x014\x01@\x01\x08document\x1d\0\x0a\x04\0\x17[constructo\ -r]asset-glxf\x015\x01@\x01\x04self\x0e\0\x1b\x04\0\x1b[method]asset-glxf.documen\ -t\x016\x01@\x01\x04self\x0e\0\x13\x04\0\x1d[method]asset-glxf.list-nodes\x017\x01\ -@\x02\x04self\x0e\x05value\x16\x01\0\x04\0\x1b[method]asset-glxf.add-node\x018\x04\ -\0\x1e[method]asset-glxf.remove-node\x018\x01@\0\0\x12\x04\0\x16[constructor]glx\ -f-node\x019\x01@\x01\x04self\x16\0y\x04\0\x14[method]glxf-node.id\x01:\x01@\x01\x04\ -self\x16\0s\x04\0\x16[method]glxf-node.name\x01;\x01@\x02\x04self\x16\x05values\x01\ -\0\x04\0\x1a[method]glxf-node.set-name\x01<\x01@\x01\x04self\x16\0\x05\x04\0\x1b\ -[method]glxf-node.transform\x01=\x01@\x02\x04self\x16\x05value\x05\x01\0\x04\0\x1f\ -[method]glxf-node.set-transform\x01>\x01k\x12\x01@\x01\x04self\x16\0?\x04\0\x18[\ -method]glxf-node.parent\x01@\x01k\x15\x01@\x01\x04self\x16\0\xc1\0\x04\0\x1a[met\ -hod]glxf-node.children\x01B\x01k\x19\x01@\x02\x04self\x16\x05value\xc3\0\x01\0\x04\ -\0\x1e[method]glxf-node.set-children\x01D\x01@\0\0#\x04\0\x17[constructor]glxf-s\ -cene\x01E\x01@\x01\x04self&\0y\x04\0\x15[method]glxf-scene.id\x01F\x01@\x01\x04s\ -elf&\0s\x04\0\x17[method]glxf-scene.name\x01G\x01@\x02\x04self&\x05values\x01\0\x04\ -\0\x1b[method]glxf-scene.set-name\x01H\x01@\x01\x04self&\0\x13\x04\0\x18[method]\ -glxf-scene.nodes\x01I\x01@\x02\x04self&\x04node\x16\x01\0\x04\0\x1b[method]glxf-\ -scene.add-node\x01J\x04\0\x1e[method]glxf-scene.remove-node\x01J\x04\0\x08get-ro\ -ot\x01\x1c\x03\x01\x10wired:scene/glxf\x05\x17\x01B\x07\x04\0\x06script\x03\x01\x01\ -i\0\x01@\0\0\x01\x04\0\x13[constructor]script\x01\x02\x01h\0\x01@\x02\x04self\x03\ -\x05deltav\x01\0\x04\0\x15[method]script.update\x01\x04\x04\x01\x12wired:script/\ -types\x05\x18\x04\x01\x19test:wired-physics/script\x04\0\x0b\x0c\x01\0\x06script\ -\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10\ -wit-bindgen-rust\x060.25.0"; +tle\x09\x04palm\x07\x05wrist\x07\x05elbow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0b\ +orientation\x03\x06origin\x01\x04\0\x03ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03\ +ray\x01\x0e\0\x04\0\x0ainput-data\x03\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\ +\0\x04\0\x0cinput-action\x03\0\x11\x01r\x03\x02idw\x06action\x12\x04data\x10\x04\ +\0\x0binput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x03\x02\x03\0\x01\x0b\ +input-event\x01B\x0a\x02\x03\x02\x01\x04\x04\0\x0binput-event\x03\0\0\x04\0\x0di\ +nput-handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\ +\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\x1a[method]input-handler\ +.next\x01\x07\x03\x01\x13wired:input/handler\x05\x05\x01B\x04\x01m\x04\x05debug\x04\ +info\x04warn\x05error\x04\0\x09log-level\x03\0\0\x01@\x02\x05level\x01\x07messag\ +es\x01\0\x04\0\x03log\x01\x02\x03\x01\x0dwired:log/api\x05\x06\x01B\x1c\x02\x03\x02\ +\x01\x01\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06\ +radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylind\ +er\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\ +\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01\ +i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\ +\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04s\ +elf\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01\ +@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\ +\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\ +\x04self\x11\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\ +\0\x19[method]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\ +\x13\x03\x01\x13wired:physics/types\x05\x07\x01B\x13\x01r\x04\x01rv\x01gv\x01bv\x01\ +av\x04\0\x05color\x03\0\0\x04\0\x08material\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x15\ +[constructor]material\x01\x04\x01h\x02\x01@\x01\x04self\x05\0y\x04\0\x13[method]\ +material.id\x01\x06\x01@\x01\x04self\x05\0\x03\x04\0\x14[method]material.ref\x01\ +\x07\x01@\x01\x04self\x05\0s\x04\0\x15[method]material.name\x01\x08\x01@\x02\x04\ +self\x05\x05values\x01\0\x04\0\x19[method]material.set-name\x01\x09\x01@\x01\x04\ +self\x05\0\x01\x04\0\x16[method]material.color\x01\x0a\x01@\x02\x04self\x05\x05v\ +alue\x01\x01\0\x04\0\x1a[method]material.set-color\x01\x0b\x03\x01\x14wired:scen\ +e/material\x05\x08\x02\x03\0\x05\x08material\x01B+\x02\x03\x02\x01\x09\x04\0\x08\ +material\x03\0\0\x04\0\x09primitive\x03\x01\x04\0\x04mesh\x03\x01\x01h\x02\x01@\x01\ +\x04self\x04\0y\x04\0\x14[method]primitive.id\x01\x05\x01i\x01\x01k\x06\x01@\x01\ +\x04self\x04\0\x07\x04\0\x1a[method]primitive.material\x01\x08\x01h\x01\x01k\x09\ +\x01@\x02\x04self\x04\x05value\x0a\x01\0\x04\0\x1e[method]primitive.set-material\ +\x01\x0b\x01py\x01@\x02\x04self\x04\x05value\x0c\x01\0\x04\0\x1d[method]primitiv\ +e.set-indices\x01\x0d\x01pv\x01@\x02\x04self\x04\x05value\x0e\x01\0\x04\0\x1d[me\ +thod]primitive.set-normals\x01\x0f\x04\0\x1f[method]primitive.set-positions\x01\x0f\ +\x04\0\x19[method]primitive.set-uvs\x01\x0f\x01i\x03\x01@\0\0\x10\x04\0\x11[cons\ +tructor]mesh\x01\x11\x01h\x03\x01@\x01\x04self\x12\0y\x04\0\x0f[method]mesh.id\x01\ +\x13\x01@\x01\x04self\x12\0\x10\x04\0\x10[method]mesh.ref\x01\x14\x01@\x01\x04se\ +lf\x12\0s\x04\0\x11[method]mesh.name\x01\x15\x01@\x02\x04self\x12\x05values\x01\0\ +\x04\0\x15[method]mesh.set-name\x01\x16\x01i\x02\x01p\x17\x01@\x01\x04self\x12\0\ +\x18\x04\0\x1c[method]mesh.list-primitives\x01\x19\x01@\x01\x04self\x12\0\x17\x04\ +\0\x1d[method]mesh.create-primitive\x01\x1a\x01@\x02\x04self\x12\x05value\x17\x01\ +\0\x04\0\x1d[method]mesh.remove-primitive\x01\x1b\x03\x01\x10wired:scene/mesh\x05\ +\x0a\x02\x03\0\x06\x04mesh\x02\x03\0\x02\x0dinput-handler\x02\x03\0\0\x09transfo\ +rm\x02\x03\0\x04\x08collider\x02\x03\0\x04\x0arigid-body\x01BE\x02\x03\x02\x01\x0b\ +\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0c\x04\0\x0dinput-handler\x03\0\x02\x02\x03\ +\x02\x01\x0d\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0e\x04\0\x08collider\x03\ +\0\x06\x02\x03\x02\x01\x0f\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x10\x02\x03\0\ +\x07\x04node\x01B\x11\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\0\x01i\x01\x01r\x14\ +\x04hips\x02\x05spine\x02\x05chest\x02\x0bupper-chest\x02\x04neck\x02\x04head\x02\ +\x0dleft-shoulder\x02\x0eleft-upper-arm\x02\x0eleft-lower-arm\x02\x09left-hand\x02\ +\x0eright-shoulder\x02\x0fright-upper-arm\x02\x0fright-lower-arm\x02\x0aright-ha\ +nd\x02\x0eleft-upper-leg\x02\x0eleft-lower-leg\x02\x09left-foot\x02\x0fright-upp\ +er-leg\x02\x0fright-lower-leg\x02\x0aright-foot\x02\x04\0\x08skeleton\x03\0\x03\x04\ +\0\x06player\x03\x01\x01h\x05\x01@\x01\x04self\x06\0\x02\x04\0\x13[method]player\ +.root\x01\x07\x01@\x01\x04self\x06\0\x04\x04\0\x17[method]player.skeleton\x01\x08\ +\x01i\x05\x01p\x09\x01@\0\0\x0a\x04\0\x0clist-players\x01\x0b\x01@\0\0\x09\x04\0\ +\x0clocal-player\x01\x0c\x03\x01\x10wired:player/api\x05\x12\x01B\x15\x02\x03\x02\ +\x01\x11\x04\0\x04node\x03\0\0\x04\0\x05scene\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\ +\x12[constructor]scene\x01\x04\x01h\x02\x01@\x01\x04self\x05\0y\x04\0\x10[method\ +]scene.id\x01\x06\x01@\x01\x04self\x05\0s\x04\0\x12[method]scene.name\x01\x07\x01\ +@\x02\x04self\x05\x05values\x01\0\x04\0\x16[method]scene.set-name\x01\x08\x01i\x01\ +\x01p\x09\x01@\x01\x04self\x05\0\x0a\x04\0\x13[method]scene.nodes\x01\x0b\x01h\x01\ +\x01@\x02\x04self\x05\x05value\x0c\x01\0\x04\0\x16[method]scene.add-node\x01\x0d\ +\x04\0\x19[method]scene.remove-node\x01\x0d\x03\x01\x11wired:scene/scene\x05\x13\ +\x02\x03\0\x09\x05scene\x01B5\x02\x03\x02\x01\x09\x04\0\x08material\x03\0\0\x02\x03\ +\x02\x01\x0b\x04\0\x04mesh\x03\0\x02\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x04\ +\x02\x03\x02\x01\x14\x04\0\x05scene\x03\0\x06\x04\0\x04gltf\x03\x01\x01i\x08\x01\ +@\0\0\x09\x04\0\x11[constructor]gltf\x01\x0a\x01h\x08\x01i\x01\x01p\x0c\x01@\x01\ +\x04self\x0b\0\x0d\x04\0\x1b[method]gltf.list-materials\x01\x0e\x01h\x01\x01@\x02\ +\x04self\x0b\x05value\x0f\x01\0\x04\0\x19[method]gltf.add-material\x01\x10\x04\0\ +\x1c[method]gltf.remove-material\x01\x10\x01i\x03\x01p\x11\x01@\x01\x04self\x0b\0\ +\x12\x04\0\x18[method]gltf.list-meshes\x01\x13\x01h\x03\x01@\x02\x04self\x0b\x05\ +value\x14\x01\0\x04\0\x15[method]gltf.add-mesh\x01\x15\x04\0\x18[method]gltf.rem\ +ove-mesh\x01\x15\x01i\x05\x01p\x16\x01@\x01\x04self\x0b\0\x17\x04\0\x17[method]g\ +ltf.list-nodes\x01\x18\x01h\x05\x01@\x02\x04self\x0b\x05value\x19\x01\0\x04\0\x15\ +[method]gltf.add-node\x01\x1a\x04\0\x18[method]gltf.remove-node\x01\x1a\x01i\x07\ +\x01p\x1b\x01@\x01\x04self\x0b\0\x1c\x04\0\x18[method]gltf.list-scenes\x01\x1d\x01\ +h\x07\x01@\x02\x04self\x0b\x05value\x1e\x01\0\x04\0\x16[method]gltf.add-scene\x01\ +\x1f\x04\0\x19[method]gltf.remove-scene\x01\x1f\x01k\x1b\x01@\x01\x04self\x0b\0\x20\ +\x04\0\x19[method]gltf.active-scene\x01!\x01k\x1e\x01@\x02\x04self\x0b\x05value\"\ +\x01\0\x04\0\x1d[method]gltf.set-active-scene\x01#\x04\0\x1a[method]gltf.default\ +-scene\x01!\x04\0\x1e[method]gltf.set-default-scene\x01\x1f\x03\x01\x10wired:sce\ +ne/gltf\x05\x15\x02\x03\0\x0a\x04gltf\x01Bt\x02\x03\x02\x01\x16\x04\0\x04gltf\x03\ +\0\0\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x02\x02\x03\x02\x01\x0d\x04\0\x09tr\ +ansform\x03\0\x04\x04\0\x04glxf\x03\x01\x04\0\x0aasset-gltf\x03\x01\x04\0\x0aass\ +et-glxf\x03\x01\x01i\x07\x01i\x08\x01q\x02\x04gltf\x01\x09\0\x04glxf\x01\x0a\0\x04\ +\0\x05asset\x03\0\x0b\x01h\x07\x01h\x08\x01q\x02\x04gltf\x01\x0d\0\x04glxf\x01\x0e\ +\0\x04\0\x0casset-borrow\x03\0\x0f\x04\0\x09glxf-node\x03\x01\x01i\x11\x01p\x12\x01\ +q\x02\x05asset\x01\x0c\0\x05nodes\x01\x13\0\x04\0\x08children\x03\0\x14\x01h\x11\ +\x01p\x16\x01q\x02\x05asset\x01\x10\0\x05nodes\x01\x17\0\x04\0\x0fchildren-borro\ +w\x03\0\x18\x04\0\x0aglxf-scene\x03\x01\x01i\x06\x01@\0\0\x1b\x04\0\x11[construc\ +tor]glxf\x01\x1c\x01h\x06\x01p\x0c\x01@\x01\x04self\x1d\0\x1e\x04\0\x18[method]g\ +lxf.list-assets\x01\x1f\x01@\x02\x04self\x1d\x05value\x10\x01\0\x04\0\x16[method\ +]glxf.add-asset\x01\x20\x04\0\x19[method]glxf.remove-asset\x01\x20\x01@\x01\x04s\ +elf\x1d\0\x13\x04\0\x17[method]glxf.list-nodes\x01!\x01@\x02\x04self\x1d\x05valu\ +e\x16\x01\0\x04\0\x15[method]glxf.add-node\x01\"\x04\0\x18[method]glxf.remove-no\ +de\x01\"\x01i\x1a\x01p#\x01@\x01\x04self\x1d\0$\x04\0\x18[method]glxf.list-scene\ +s\x01%\x01h\x1a\x01@\x02\x04self\x1d\x05value&\x01\0\x04\0\x16[method]glxf.add-s\ +cene\x01'\x04\0\x19[method]glxf.remove-scene\x01'\x01k#\x01@\x01\x04self\x1d\0(\x04\ +\0\x19[method]glxf.active-scene\x01)\x01k&\x01@\x02\x04self\x1d\x05value*\x01\0\x04\ +\0\x1d[method]glxf.set-active-scene\x01+\x04\0\x1a[method]glxf.default-scene\x01\ +)\x04\0\x1e[method]glxf.set-default-scene\x01'\x01h\x01\x01@\x01\x08document,\0\x09\ +\x04\0\x17[constructor]asset-gltf\x01-\x01i\x01\x01@\x01\x04self\x0d\0.\x04\0\x1b\ +[method]asset-gltf.document\x01/\x01i\x03\x01p0\x01@\x01\x04self\x0d\01\x04\0\x1d\ +[method]asset-gltf.list-nodes\x012\x01h\x03\x01@\x02\x04self\x0d\x05value3\x01\0\ +\x04\0\x1b[method]asset-gltf.add-node\x014\x04\0\x1e[method]asset-gltf.remove-no\ +de\x014\x01@\x01\x08document\x1d\0\x0a\x04\0\x17[constructor]asset-glxf\x015\x01\ +@\x01\x04self\x0e\0\x1b\x04\0\x1b[method]asset-glxf.document\x016\x01@\x01\x04se\ +lf\x0e\0\x13\x04\0\x1d[method]asset-glxf.list-nodes\x017\x01@\x02\x04self\x0e\x05\ +value\x16\x01\0\x04\0\x1b[method]asset-glxf.add-node\x018\x04\0\x1e[method]asset\ +-glxf.remove-node\x018\x01@\0\0\x12\x04\0\x16[constructor]glxf-node\x019\x01@\x01\ +\x04self\x16\0y\x04\0\x14[method]glxf-node.id\x01:\x01@\x01\x04self\x16\0s\x04\0\ +\x16[method]glxf-node.name\x01;\x01@\x02\x04self\x16\x05values\x01\0\x04\0\x1a[m\ +ethod]glxf-node.set-name\x01<\x01@\x01\x04self\x16\0\x05\x04\0\x1b[method]glxf-n\ +ode.transform\x01=\x01@\x02\x04self\x16\x05value\x05\x01\0\x04\0\x1f[method]glxf\ +-node.set-transform\x01>\x01k\x12\x01@\x01\x04self\x16\0?\x04\0\x18[method]glxf-\ +node.parent\x01@\x01k\x15\x01@\x01\x04self\x16\0\xc1\0\x04\0\x1a[method]glxf-nod\ +e.children\x01B\x01k\x19\x01@\x02\x04self\x16\x05value\xc3\0\x01\0\x04\0\x1e[met\ +hod]glxf-node.set-children\x01D\x01@\0\0#\x04\0\x17[constructor]glxf-scene\x01E\x01\ +@\x01\x04self&\0y\x04\0\x15[method]glxf-scene.id\x01F\x01@\x01\x04self&\0s\x04\0\ +\x17[method]glxf-scene.name\x01G\x01@\x02\x04self&\x05values\x01\0\x04\0\x1b[met\ +hod]glxf-scene.set-name\x01H\x01@\x01\x04self&\0\x13\x04\0\x18[method]glxf-scene\ +.nodes\x01I\x01@\x02\x04self&\x04node\x16\x01\0\x04\0\x1b[method]glxf-scene.add-\ +node\x01J\x04\0\x1e[method]glxf-scene.remove-node\x01J\x04\0\x08get-root\x01\x1c\ +\x03\x01\x10wired:scene/glxf\x05\x17\x01B\x07\x04\0\x06script\x03\x01\x01i\0\x01\ +@\0\0\x01\x04\0\x13[constructor]script\x01\x02\x01h\0\x01@\x02\x04self\x03\x05de\ +ltav\x01\0\x04\0\x15[method]script.update\x01\x04\x04\x01\x12wired:script/types\x05\ +\x18\x04\x01\x19test:wired-physics/script\x04\0\x0b\x0c\x01\0\x06script\x03\0\0\0\ +G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-bindge\ +n-rust\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wasm/test-wired-scene/src/bindings.rs b/wasm/test-wired-scene/src/bindings.rs index b3cd3b02c..43166e4a6 100644 --- a/wasm/test-wired-scene/src/bindings.rs +++ b/wasm/test-wired-scene/src/bindings.rs @@ -111,46 +111,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -159,20 +153,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -256,16 +247,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -281,535 +272,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -818,72 +818,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -5998,8 +5967,8 @@ pub(crate) use __export_script_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:script:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 7448] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x9b9\x01A\x02\x01A&\x01\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 7423] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x829\x01A\x02\x01A&\x01\ B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\0\ \x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01r\ \x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ @@ -6011,159 +5980,159 @@ B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\ ation\x01\x08rotation\x03\x06radiusv\x04\0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\ \x06distal\x07\x08proximal\x07\x0ametacarpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\ \x01r\x09\x04side\x05\x05thumb\x09\x05index\x09\x06middle\x09\x04ring\x09\x06lit\ -tle\x09\x04palm\x07\x05wrist\x07\x05elbow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06\ -origin\x01\x0borientation\x03\x04\0\x03ray\x03\0\x0d\x01r\x03\x06origin\x01\x0bo\ -rientation\x03\x06radiusv\x04\0\x03tip\x03\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03r\ -ay\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainput-type\x03\0\x11\x01r\x04\x02idw\x05i\ -nput\x12\x08distancev\x05ordery\x04\0\x0binput-event\x03\0\x13\x03\x01\x11wired:\ -input/types\x05\x03\x02\x03\0\x01\x0binput-event\x01B\x0a\x02\x03\x02\x01\x04\x04\ -\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\ -\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\ -\x06\x04\0\"[method]input-handler.handle-input\x01\x07\x03\x01\x13wired:input/ha\ -ndler\x05\x05\x01B\x04\x01m\x04\x05debug\x04info\x04warn\x05error\x04\0\x09log-l\ -evel\x03\0\0\x01@\x02\x05level\x01\x07messages\x01\0\x04\0\x03log\x01\x02\x03\x01\ -\x0dwired:log/api\x05\x06\x01B\x1c\x02\x03\x02\x01\x01\x04\0\x04vec3\x03\0\0\x04\ -\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\ -\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\ -\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09\ -kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\ -\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18\ -[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[\ -method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\ -\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\ -\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\ -\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\ -\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/typ\ -es\x05\x07\x01B\x13\x01r\x04\x01rv\x01gv\x01bv\x01av\x04\0\x05color\x03\0\0\x04\0\ -\x08material\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x15[constructor]material\x01\x04\ -\x01h\x02\x01@\x01\x04self\x05\0y\x04\0\x13[method]material.id\x01\x06\x01@\x01\x04\ -self\x05\0\x03\x04\0\x14[method]material.ref\x01\x07\x01@\x01\x04self\x05\0s\x04\ -\0\x15[method]material.name\x01\x08\x01@\x02\x04self\x05\x05values\x01\0\x04\0\x19\ -[method]material.set-name\x01\x09\x01@\x01\x04self\x05\0\x01\x04\0\x16[method]ma\ -terial.color\x01\x0a\x01@\x02\x04self\x05\x05value\x01\x01\0\x04\0\x1a[method]ma\ -terial.set-color\x01\x0b\x03\x01\x14wired:scene/material\x05\x08\x02\x03\0\x05\x08\ -material\x01B+\x02\x03\x02\x01\x09\x04\0\x08material\x03\0\0\x04\0\x09primitive\x03\ -\x01\x04\0\x04mesh\x03\x01\x01h\x02\x01@\x01\x04self\x04\0y\x04\0\x14[method]pri\ -mitive.id\x01\x05\x01i\x01\x01k\x06\x01@\x01\x04self\x04\0\x07\x04\0\x1a[method]\ -primitive.material\x01\x08\x01h\x01\x01k\x09\x01@\x02\x04self\x04\x05value\x0a\x01\ -\0\x04\0\x1e[method]primitive.set-material\x01\x0b\x01py\x01@\x02\x04self\x04\x05\ -value\x0c\x01\0\x04\0\x1d[method]primitive.set-indices\x01\x0d\x01pv\x01@\x02\x04\ -self\x04\x05value\x0e\x01\0\x04\0\x1d[method]primitive.set-normals\x01\x0f\x04\0\ -\x1f[method]primitive.set-positions\x01\x0f\x04\0\x19[method]primitive.set-uvs\x01\ -\x0f\x01i\x03\x01@\0\0\x10\x04\0\x11[constructor]mesh\x01\x11\x01h\x03\x01@\x01\x04\ -self\x12\0y\x04\0\x0f[method]mesh.id\x01\x13\x01@\x01\x04self\x12\0\x10\x04\0\x10\ -[method]mesh.ref\x01\x14\x01@\x01\x04self\x12\0s\x04\0\x11[method]mesh.name\x01\x15\ -\x01@\x02\x04self\x12\x05values\x01\0\x04\0\x15[method]mesh.set-name\x01\x16\x01\ -i\x02\x01p\x17\x01@\x01\x04self\x12\0\x18\x04\0\x1c[method]mesh.list-primitives\x01\ -\x19\x01@\x01\x04self\x12\0\x17\x04\0\x1d[method]mesh.create-primitive\x01\x1a\x01\ -@\x02\x04self\x12\x05value\x17\x01\0\x04\0\x1d[method]mesh.remove-primitive\x01\x1b\ -\x03\x01\x10wired:scene/mesh\x05\x0a\x02\x03\0\x06\x04mesh\x02\x03\0\x02\x0dinpu\ -t-handler\x02\x03\0\0\x09transform\x02\x03\0\x04\x08collider\x02\x03\0\x04\x0ari\ -gid-body\x01BE\x02\x03\x02\x01\x0b\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0c\x04\ -\0\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0d\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0e\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0f\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x10\x02\x03\0\x07\x04node\x01B\x11\x02\x03\x02\x01\x11\x04\0\ -\x04node\x03\0\0\x01i\x01\x01r\x14\x04hips\x02\x05spine\x02\x05chest\x02\x0buppe\ -r-chest\x02\x04neck\x02\x04head\x02\x0dleft-shoulder\x02\x0eleft-upper-arm\x02\x0e\ -left-lower-arm\x02\x09left-hand\x02\x0eright-shoulder\x02\x0fright-upper-arm\x02\ -\x0fright-lower-arm\x02\x0aright-hand\x02\x0eleft-upper-leg\x02\x0eleft-lower-le\ -g\x02\x09left-foot\x02\x0fright-upper-leg\x02\x0fright-lower-leg\x02\x0aright-fo\ -ot\x02\x04\0\x08skeleton\x03\0\x03\x04\0\x06player\x03\x01\x01h\x05\x01@\x01\x04\ -self\x06\0\x02\x04\0\x13[method]player.root\x01\x07\x01@\x01\x04self\x06\0\x04\x04\ -\0\x17[method]player.skeleton\x01\x08\x01i\x05\x01p\x09\x01@\0\0\x0a\x04\0\x0cli\ -st-players\x01\x0b\x01@\0\0\x09\x04\0\x0clocal-player\x01\x0c\x03\x01\x10wired:p\ -layer/api\x05\x12\x01B\x15\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\0\x04\0\x05sc\ -ene\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x12[constructor]scene\x01\x04\x01h\x02\x01\ -@\x01\x04self\x05\0y\x04\0\x10[method]scene.id\x01\x06\x01@\x01\x04self\x05\0s\x04\ -\0\x12[method]scene.name\x01\x07\x01@\x02\x04self\x05\x05values\x01\0\x04\0\x16[\ -method]scene.set-name\x01\x08\x01i\x01\x01p\x09\x01@\x01\x04self\x05\0\x0a\x04\0\ -\x13[method]scene.nodes\x01\x0b\x01h\x01\x01@\x02\x04self\x05\x05value\x0c\x01\0\ -\x04\0\x16[method]scene.add-node\x01\x0d\x04\0\x19[method]scene.remove-node\x01\x0d\ -\x03\x01\x11wired:scene/scene\x05\x13\x02\x03\0\x09\x05scene\x01B5\x02\x03\x02\x01\ -\x09\x04\0\x08material\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x04mesh\x03\0\x02\x02\x03\ -\x02\x01\x11\x04\0\x04node\x03\0\x04\x02\x03\x02\x01\x14\x04\0\x05scene\x03\0\x06\ -\x04\0\x04gltf\x03\x01\x01i\x08\x01@\0\0\x09\x04\0\x11[constructor]gltf\x01\x0a\x01\ -h\x08\x01i\x01\x01p\x0c\x01@\x01\x04self\x0b\0\x0d\x04\0\x1b[method]gltf.list-ma\ -terials\x01\x0e\x01h\x01\x01@\x02\x04self\x0b\x05value\x0f\x01\0\x04\0\x19[metho\ -d]gltf.add-material\x01\x10\x04\0\x1c[method]gltf.remove-material\x01\x10\x01i\x03\ -\x01p\x11\x01@\x01\x04self\x0b\0\x12\x04\0\x18[method]gltf.list-meshes\x01\x13\x01\ -h\x03\x01@\x02\x04self\x0b\x05value\x14\x01\0\x04\0\x15[method]gltf.add-mesh\x01\ -\x15\x04\0\x18[method]gltf.remove-mesh\x01\x15\x01i\x05\x01p\x16\x01@\x01\x04sel\ -f\x0b\0\x17\x04\0\x17[method]gltf.list-nodes\x01\x18\x01h\x05\x01@\x02\x04self\x0b\ -\x05value\x19\x01\0\x04\0\x15[method]gltf.add-node\x01\x1a\x04\0\x18[method]gltf\ -.remove-node\x01\x1a\x01i\x07\x01p\x1b\x01@\x01\x04self\x0b\0\x1c\x04\0\x18[meth\ -od]gltf.list-scenes\x01\x1d\x01h\x07\x01@\x02\x04self\x0b\x05value\x1e\x01\0\x04\ -\0\x16[method]gltf.add-scene\x01\x1f\x04\0\x19[method]gltf.remove-scene\x01\x1f\x01\ -k\x1b\x01@\x01\x04self\x0b\0\x20\x04\0\x19[method]gltf.active-scene\x01!\x01k\x1e\ -\x01@\x02\x04self\x0b\x05value\"\x01\0\x04\0\x1d[method]gltf.set-active-scene\x01\ -#\x04\0\x1a[method]gltf.default-scene\x01!\x04\0\x1e[method]gltf.set-default-sce\ -ne\x01\x1f\x03\x01\x10wired:scene/gltf\x05\x15\x02\x03\0\x0a\x04gltf\x01Bt\x02\x03\ -\x02\x01\x16\x04\0\x04gltf\x03\0\0\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x02\x02\ -\x03\x02\x01\x0d\x04\0\x09transform\x03\0\x04\x04\0\x04glxf\x03\x01\x04\0\x0aass\ -et-gltf\x03\x01\x04\0\x0aasset-glxf\x03\x01\x01i\x07\x01i\x08\x01q\x02\x04gltf\x01\ -\x09\0\x04glxf\x01\x0a\0\x04\0\x05asset\x03\0\x0b\x01h\x07\x01h\x08\x01q\x02\x04\ -gltf\x01\x0d\0\x04glxf\x01\x0e\0\x04\0\x0casset-borrow\x03\0\x0f\x04\0\x09glxf-n\ -ode\x03\x01\x01i\x11\x01p\x12\x01q\x02\x05asset\x01\x0c\0\x05nodes\x01\x13\0\x04\ -\0\x08children\x03\0\x14\x01h\x11\x01p\x16\x01q\x02\x05asset\x01\x10\0\x05nodes\x01\ -\x17\0\x04\0\x0fchildren-borrow\x03\0\x18\x04\0\x0aglxf-scene\x03\x01\x01i\x06\x01\ -@\0\0\x1b\x04\0\x11[constructor]glxf\x01\x1c\x01h\x06\x01p\x0c\x01@\x01\x04self\x1d\ -\0\x1e\x04\0\x18[method]glxf.list-assets\x01\x1f\x01@\x02\x04self\x1d\x05value\x10\ -\x01\0\x04\0\x16[method]glxf.add-asset\x01\x20\x04\0\x19[method]glxf.remove-asse\ -t\x01\x20\x01@\x01\x04self\x1d\0\x13\x04\0\x17[method]glxf.list-nodes\x01!\x01@\x02\ -\x04self\x1d\x05value\x16\x01\0\x04\0\x15[method]glxf.add-node\x01\"\x04\0\x18[m\ -ethod]glxf.remove-node\x01\"\x01i\x1a\x01p#\x01@\x01\x04self\x1d\0$\x04\0\x18[me\ -thod]glxf.list-scenes\x01%\x01h\x1a\x01@\x02\x04self\x1d\x05value&\x01\0\x04\0\x16\ -[method]glxf.add-scene\x01'\x04\0\x19[method]glxf.remove-scene\x01'\x01k#\x01@\x01\ -\x04self\x1d\0(\x04\0\x19[method]glxf.active-scene\x01)\x01k&\x01@\x02\x04self\x1d\ -\x05value*\x01\0\x04\0\x1d[method]glxf.set-active-scene\x01+\x04\0\x1a[method]gl\ -xf.default-scene\x01)\x04\0\x1e[method]glxf.set-default-scene\x01'\x01h\x01\x01@\ -\x01\x08document,\0\x09\x04\0\x17[constructor]asset-gltf\x01-\x01i\x01\x01@\x01\x04\ -self\x0d\0.\x04\0\x1b[method]asset-gltf.document\x01/\x01i\x03\x01p0\x01@\x01\x04\ -self\x0d\01\x04\0\x1d[method]asset-gltf.list-nodes\x012\x01h\x03\x01@\x02\x04sel\ -f\x0d\x05value3\x01\0\x04\0\x1b[method]asset-gltf.add-node\x014\x04\0\x1e[method\ -]asset-gltf.remove-node\x014\x01@\x01\x08document\x1d\0\x0a\x04\0\x17[constructo\ -r]asset-glxf\x015\x01@\x01\x04self\x0e\0\x1b\x04\0\x1b[method]asset-glxf.documen\ -t\x016\x01@\x01\x04self\x0e\0\x13\x04\0\x1d[method]asset-glxf.list-nodes\x017\x01\ -@\x02\x04self\x0e\x05value\x16\x01\0\x04\0\x1b[method]asset-glxf.add-node\x018\x04\ -\0\x1e[method]asset-glxf.remove-node\x018\x01@\0\0\x12\x04\0\x16[constructor]glx\ -f-node\x019\x01@\x01\x04self\x16\0y\x04\0\x14[method]glxf-node.id\x01:\x01@\x01\x04\ -self\x16\0s\x04\0\x16[method]glxf-node.name\x01;\x01@\x02\x04self\x16\x05values\x01\ -\0\x04\0\x1a[method]glxf-node.set-name\x01<\x01@\x01\x04self\x16\0\x05\x04\0\x1b\ -[method]glxf-node.transform\x01=\x01@\x02\x04self\x16\x05value\x05\x01\0\x04\0\x1f\ -[method]glxf-node.set-transform\x01>\x01k\x12\x01@\x01\x04self\x16\0?\x04\0\x18[\ -method]glxf-node.parent\x01@\x01k\x15\x01@\x01\x04self\x16\0\xc1\0\x04\0\x1a[met\ -hod]glxf-node.children\x01B\x01k\x19\x01@\x02\x04self\x16\x05value\xc3\0\x01\0\x04\ -\0\x1e[method]glxf-node.set-children\x01D\x01@\0\0#\x04\0\x17[constructor]glxf-s\ -cene\x01E\x01@\x01\x04self&\0y\x04\0\x15[method]glxf-scene.id\x01F\x01@\x01\x04s\ -elf&\0s\x04\0\x17[method]glxf-scene.name\x01G\x01@\x02\x04self&\x05values\x01\0\x04\ -\0\x1b[method]glxf-scene.set-name\x01H\x01@\x01\x04self&\0\x13\x04\0\x18[method]\ -glxf-scene.nodes\x01I\x01@\x02\x04self&\x04node\x16\x01\0\x04\0\x1b[method]glxf-\ -scene.add-node\x01J\x04\0\x1e[method]glxf-scene.remove-node\x01J\x04\0\x08get-ro\ -ot\x01\x1c\x03\x01\x10wired:scene/glxf\x05\x17\x01B\x07\x04\0\x06script\x03\x01\x01\ -i\0\x01@\0\0\x01\x04\0\x13[constructor]script\x01\x02\x01h\0\x01@\x02\x04self\x03\ -\x05deltav\x01\0\x04\0\x15[method]script.update\x01\x04\x04\x01\x12wired:script/\ -types\x05\x18\x04\x01\x17test:wired-scene/script\x04\0\x0b\x0c\x01\0\x06script\x03\ -\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-\ -bindgen-rust\x060.25.0"; +tle\x09\x04palm\x07\x05wrist\x07\x05elbow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0b\ +orientation\x03\x06origin\x01\x04\0\x03ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03\ +ray\x01\x0e\0\x04\0\x0ainput-data\x03\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\ +\0\x04\0\x0cinput-action\x03\0\x11\x01r\x03\x02idw\x06action\x12\x04data\x10\x04\ +\0\x0binput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x03\x02\x03\0\x01\x0b\ +input-event\x01B\x0a\x02\x03\x02\x01\x04\x04\0\x0binput-event\x03\0\0\x04\0\x0di\ +nput-handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\ +\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\x1a[method]input-handler\ +.next\x01\x07\x03\x01\x13wired:input/handler\x05\x05\x01B\x04\x01m\x04\x05debug\x04\ +info\x04warn\x05error\x04\0\x09log-level\x03\0\0\x01@\x02\x05level\x01\x07messag\ +es\x01\0\x04\0\x03log\x01\x02\x03\x01\x0dwired:log/api\x05\x06\x01B\x1c\x02\x03\x02\ +\x01\x01\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06\ +radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylind\ +er\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\ +\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01\ +i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\ +\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04s\ +elf\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01\ +@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\ +\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\ +\x04self\x11\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\ +\0\x19[method]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\ +\x13\x03\x01\x13wired:physics/types\x05\x07\x01B\x13\x01r\x04\x01rv\x01gv\x01bv\x01\ +av\x04\0\x05color\x03\0\0\x04\0\x08material\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x15\ +[constructor]material\x01\x04\x01h\x02\x01@\x01\x04self\x05\0y\x04\0\x13[method]\ +material.id\x01\x06\x01@\x01\x04self\x05\0\x03\x04\0\x14[method]material.ref\x01\ +\x07\x01@\x01\x04self\x05\0s\x04\0\x15[method]material.name\x01\x08\x01@\x02\x04\ +self\x05\x05values\x01\0\x04\0\x19[method]material.set-name\x01\x09\x01@\x01\x04\ +self\x05\0\x01\x04\0\x16[method]material.color\x01\x0a\x01@\x02\x04self\x05\x05v\ +alue\x01\x01\0\x04\0\x1a[method]material.set-color\x01\x0b\x03\x01\x14wired:scen\ +e/material\x05\x08\x02\x03\0\x05\x08material\x01B+\x02\x03\x02\x01\x09\x04\0\x08\ +material\x03\0\0\x04\0\x09primitive\x03\x01\x04\0\x04mesh\x03\x01\x01h\x02\x01@\x01\ +\x04self\x04\0y\x04\0\x14[method]primitive.id\x01\x05\x01i\x01\x01k\x06\x01@\x01\ +\x04self\x04\0\x07\x04\0\x1a[method]primitive.material\x01\x08\x01h\x01\x01k\x09\ +\x01@\x02\x04self\x04\x05value\x0a\x01\0\x04\0\x1e[method]primitive.set-material\ +\x01\x0b\x01py\x01@\x02\x04self\x04\x05value\x0c\x01\0\x04\0\x1d[method]primitiv\ +e.set-indices\x01\x0d\x01pv\x01@\x02\x04self\x04\x05value\x0e\x01\0\x04\0\x1d[me\ +thod]primitive.set-normals\x01\x0f\x04\0\x1f[method]primitive.set-positions\x01\x0f\ +\x04\0\x19[method]primitive.set-uvs\x01\x0f\x01i\x03\x01@\0\0\x10\x04\0\x11[cons\ +tructor]mesh\x01\x11\x01h\x03\x01@\x01\x04self\x12\0y\x04\0\x0f[method]mesh.id\x01\ +\x13\x01@\x01\x04self\x12\0\x10\x04\0\x10[method]mesh.ref\x01\x14\x01@\x01\x04se\ +lf\x12\0s\x04\0\x11[method]mesh.name\x01\x15\x01@\x02\x04self\x12\x05values\x01\0\ +\x04\0\x15[method]mesh.set-name\x01\x16\x01i\x02\x01p\x17\x01@\x01\x04self\x12\0\ +\x18\x04\0\x1c[method]mesh.list-primitives\x01\x19\x01@\x01\x04self\x12\0\x17\x04\ +\0\x1d[method]mesh.create-primitive\x01\x1a\x01@\x02\x04self\x12\x05value\x17\x01\ +\0\x04\0\x1d[method]mesh.remove-primitive\x01\x1b\x03\x01\x10wired:scene/mesh\x05\ +\x0a\x02\x03\0\x06\x04mesh\x02\x03\0\x02\x0dinput-handler\x02\x03\0\0\x09transfo\ +rm\x02\x03\0\x04\x08collider\x02\x03\0\x04\x0arigid-body\x01BE\x02\x03\x02\x01\x0b\ +\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0c\x04\0\x0dinput-handler\x03\0\x02\x02\x03\ +\x02\x01\x0d\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0e\x04\0\x08collider\x03\ +\0\x06\x02\x03\x02\x01\x0f\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x10\x02\x03\0\ +\x07\x04node\x01B\x11\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\0\x01i\x01\x01r\x14\ +\x04hips\x02\x05spine\x02\x05chest\x02\x0bupper-chest\x02\x04neck\x02\x04head\x02\ +\x0dleft-shoulder\x02\x0eleft-upper-arm\x02\x0eleft-lower-arm\x02\x09left-hand\x02\ +\x0eright-shoulder\x02\x0fright-upper-arm\x02\x0fright-lower-arm\x02\x0aright-ha\ +nd\x02\x0eleft-upper-leg\x02\x0eleft-lower-leg\x02\x09left-foot\x02\x0fright-upp\ +er-leg\x02\x0fright-lower-leg\x02\x0aright-foot\x02\x04\0\x08skeleton\x03\0\x03\x04\ +\0\x06player\x03\x01\x01h\x05\x01@\x01\x04self\x06\0\x02\x04\0\x13[method]player\ +.root\x01\x07\x01@\x01\x04self\x06\0\x04\x04\0\x17[method]player.skeleton\x01\x08\ +\x01i\x05\x01p\x09\x01@\0\0\x0a\x04\0\x0clist-players\x01\x0b\x01@\0\0\x09\x04\0\ +\x0clocal-player\x01\x0c\x03\x01\x10wired:player/api\x05\x12\x01B\x15\x02\x03\x02\ +\x01\x11\x04\0\x04node\x03\0\0\x04\0\x05scene\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\ +\x12[constructor]scene\x01\x04\x01h\x02\x01@\x01\x04self\x05\0y\x04\0\x10[method\ +]scene.id\x01\x06\x01@\x01\x04self\x05\0s\x04\0\x12[method]scene.name\x01\x07\x01\ +@\x02\x04self\x05\x05values\x01\0\x04\0\x16[method]scene.set-name\x01\x08\x01i\x01\ +\x01p\x09\x01@\x01\x04self\x05\0\x0a\x04\0\x13[method]scene.nodes\x01\x0b\x01h\x01\ +\x01@\x02\x04self\x05\x05value\x0c\x01\0\x04\0\x16[method]scene.add-node\x01\x0d\ +\x04\0\x19[method]scene.remove-node\x01\x0d\x03\x01\x11wired:scene/scene\x05\x13\ +\x02\x03\0\x09\x05scene\x01B5\x02\x03\x02\x01\x09\x04\0\x08material\x03\0\0\x02\x03\ +\x02\x01\x0b\x04\0\x04mesh\x03\0\x02\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x04\ +\x02\x03\x02\x01\x14\x04\0\x05scene\x03\0\x06\x04\0\x04gltf\x03\x01\x01i\x08\x01\ +@\0\0\x09\x04\0\x11[constructor]gltf\x01\x0a\x01h\x08\x01i\x01\x01p\x0c\x01@\x01\ +\x04self\x0b\0\x0d\x04\0\x1b[method]gltf.list-materials\x01\x0e\x01h\x01\x01@\x02\ +\x04self\x0b\x05value\x0f\x01\0\x04\0\x19[method]gltf.add-material\x01\x10\x04\0\ +\x1c[method]gltf.remove-material\x01\x10\x01i\x03\x01p\x11\x01@\x01\x04self\x0b\0\ +\x12\x04\0\x18[method]gltf.list-meshes\x01\x13\x01h\x03\x01@\x02\x04self\x0b\x05\ +value\x14\x01\0\x04\0\x15[method]gltf.add-mesh\x01\x15\x04\0\x18[method]gltf.rem\ +ove-mesh\x01\x15\x01i\x05\x01p\x16\x01@\x01\x04self\x0b\0\x17\x04\0\x17[method]g\ +ltf.list-nodes\x01\x18\x01h\x05\x01@\x02\x04self\x0b\x05value\x19\x01\0\x04\0\x15\ +[method]gltf.add-node\x01\x1a\x04\0\x18[method]gltf.remove-node\x01\x1a\x01i\x07\ +\x01p\x1b\x01@\x01\x04self\x0b\0\x1c\x04\0\x18[method]gltf.list-scenes\x01\x1d\x01\ +h\x07\x01@\x02\x04self\x0b\x05value\x1e\x01\0\x04\0\x16[method]gltf.add-scene\x01\ +\x1f\x04\0\x19[method]gltf.remove-scene\x01\x1f\x01k\x1b\x01@\x01\x04self\x0b\0\x20\ +\x04\0\x19[method]gltf.active-scene\x01!\x01k\x1e\x01@\x02\x04self\x0b\x05value\"\ +\x01\0\x04\0\x1d[method]gltf.set-active-scene\x01#\x04\0\x1a[method]gltf.default\ +-scene\x01!\x04\0\x1e[method]gltf.set-default-scene\x01\x1f\x03\x01\x10wired:sce\ +ne/gltf\x05\x15\x02\x03\0\x0a\x04gltf\x01Bt\x02\x03\x02\x01\x16\x04\0\x04gltf\x03\ +\0\0\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x02\x02\x03\x02\x01\x0d\x04\0\x09tr\ +ansform\x03\0\x04\x04\0\x04glxf\x03\x01\x04\0\x0aasset-gltf\x03\x01\x04\0\x0aass\ +et-glxf\x03\x01\x01i\x07\x01i\x08\x01q\x02\x04gltf\x01\x09\0\x04glxf\x01\x0a\0\x04\ +\0\x05asset\x03\0\x0b\x01h\x07\x01h\x08\x01q\x02\x04gltf\x01\x0d\0\x04glxf\x01\x0e\ +\0\x04\0\x0casset-borrow\x03\0\x0f\x04\0\x09glxf-node\x03\x01\x01i\x11\x01p\x12\x01\ +q\x02\x05asset\x01\x0c\0\x05nodes\x01\x13\0\x04\0\x08children\x03\0\x14\x01h\x11\ +\x01p\x16\x01q\x02\x05asset\x01\x10\0\x05nodes\x01\x17\0\x04\0\x0fchildren-borro\ +w\x03\0\x18\x04\0\x0aglxf-scene\x03\x01\x01i\x06\x01@\0\0\x1b\x04\0\x11[construc\ +tor]glxf\x01\x1c\x01h\x06\x01p\x0c\x01@\x01\x04self\x1d\0\x1e\x04\0\x18[method]g\ +lxf.list-assets\x01\x1f\x01@\x02\x04self\x1d\x05value\x10\x01\0\x04\0\x16[method\ +]glxf.add-asset\x01\x20\x04\0\x19[method]glxf.remove-asset\x01\x20\x01@\x01\x04s\ +elf\x1d\0\x13\x04\0\x17[method]glxf.list-nodes\x01!\x01@\x02\x04self\x1d\x05valu\ +e\x16\x01\0\x04\0\x15[method]glxf.add-node\x01\"\x04\0\x18[method]glxf.remove-no\ +de\x01\"\x01i\x1a\x01p#\x01@\x01\x04self\x1d\0$\x04\0\x18[method]glxf.list-scene\ +s\x01%\x01h\x1a\x01@\x02\x04self\x1d\x05value&\x01\0\x04\0\x16[method]glxf.add-s\ +cene\x01'\x04\0\x19[method]glxf.remove-scene\x01'\x01k#\x01@\x01\x04self\x1d\0(\x04\ +\0\x19[method]glxf.active-scene\x01)\x01k&\x01@\x02\x04self\x1d\x05value*\x01\0\x04\ +\0\x1d[method]glxf.set-active-scene\x01+\x04\0\x1a[method]glxf.default-scene\x01\ +)\x04\0\x1e[method]glxf.set-default-scene\x01'\x01h\x01\x01@\x01\x08document,\0\x09\ +\x04\0\x17[constructor]asset-gltf\x01-\x01i\x01\x01@\x01\x04self\x0d\0.\x04\0\x1b\ +[method]asset-gltf.document\x01/\x01i\x03\x01p0\x01@\x01\x04self\x0d\01\x04\0\x1d\ +[method]asset-gltf.list-nodes\x012\x01h\x03\x01@\x02\x04self\x0d\x05value3\x01\0\ +\x04\0\x1b[method]asset-gltf.add-node\x014\x04\0\x1e[method]asset-gltf.remove-no\ +de\x014\x01@\x01\x08document\x1d\0\x0a\x04\0\x17[constructor]asset-glxf\x015\x01\ +@\x01\x04self\x0e\0\x1b\x04\0\x1b[method]asset-glxf.document\x016\x01@\x01\x04se\ +lf\x0e\0\x13\x04\0\x1d[method]asset-glxf.list-nodes\x017\x01@\x02\x04self\x0e\x05\ +value\x16\x01\0\x04\0\x1b[method]asset-glxf.add-node\x018\x04\0\x1e[method]asset\ +-glxf.remove-node\x018\x01@\0\0\x12\x04\0\x16[constructor]glxf-node\x019\x01@\x01\ +\x04self\x16\0y\x04\0\x14[method]glxf-node.id\x01:\x01@\x01\x04self\x16\0s\x04\0\ +\x16[method]glxf-node.name\x01;\x01@\x02\x04self\x16\x05values\x01\0\x04\0\x1a[m\ +ethod]glxf-node.set-name\x01<\x01@\x01\x04self\x16\0\x05\x04\0\x1b[method]glxf-n\ +ode.transform\x01=\x01@\x02\x04self\x16\x05value\x05\x01\0\x04\0\x1f[method]glxf\ +-node.set-transform\x01>\x01k\x12\x01@\x01\x04self\x16\0?\x04\0\x18[method]glxf-\ +node.parent\x01@\x01k\x15\x01@\x01\x04self\x16\0\xc1\0\x04\0\x1a[method]glxf-nod\ +e.children\x01B\x01k\x19\x01@\x02\x04self\x16\x05value\xc3\0\x01\0\x04\0\x1e[met\ +hod]glxf-node.set-children\x01D\x01@\0\0#\x04\0\x17[constructor]glxf-scene\x01E\x01\ +@\x01\x04self&\0y\x04\0\x15[method]glxf-scene.id\x01F\x01@\x01\x04self&\0s\x04\0\ +\x17[method]glxf-scene.name\x01G\x01@\x02\x04self&\x05values\x01\0\x04\0\x1b[met\ +hod]glxf-scene.set-name\x01H\x01@\x01\x04self&\0\x13\x04\0\x18[method]glxf-scene\ +.nodes\x01I\x01@\x02\x04self&\x04node\x16\x01\0\x04\0\x1b[method]glxf-scene.add-\ +node\x01J\x04\0\x1e[method]glxf-scene.remove-node\x01J\x04\0\x08get-root\x01\x1c\ +\x03\x01\x10wired:scene/glxf\x05\x17\x01B\x07\x04\0\x06script\x03\x01\x01i\0\x01\ +@\0\0\x01\x04\0\x13[constructor]script\x01\x02\x01h\0\x01@\x02\x04self\x03\x05de\ +ltav\x01\0\x04\0\x15[method]script.update\x01\x04\x04\x01\x12wired:script/types\x05\ +\x18\x04\x01\x17test:wired-scene/script\x04\0\x0b\x0c\x01\0\x06script\x03\0\0\0G\ +\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-bindgen\ +-rust\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wasm/unavi-layout/src/bindings.rs b/wasm/unavi-layout/src/bindings.rs index c96efb420..028f0af78 100644 --- a/wasm/unavi-layout/src/bindings.rs +++ b/wasm/unavi-layout/src/bindings.rs @@ -111,46 +111,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -159,20 +153,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -256,16 +247,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -281,535 +272,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -818,72 +818,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -4083,8 +4052,8 @@ pub(crate) use __export_guest_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:guest:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 4678] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xca#\x01A\x02\x01A\x1d\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 4653] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xb1#\x01A\x02\x01A\x1d\ \x01B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\ \0\x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01\ r\x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ @@ -4120,76 +4089,76 @@ method]mesh.create-primitive\x01\x1a\x01@\x02\x04self\x12\x05value\x17\x01\0\x04 \0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\x06distal\x07\x08proximal\x07\x0ametac\ arpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\x01r\x09\x04side\x05\x05thumb\x09\x05\ index\x09\x06middle\x09\x04ring\x09\x06little\x09\x04palm\x07\x05wrist\x07\x05el\ -bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06origin\x01\x0borientation\x03\x04\0\x03\ -ray\x03\0\x0d\x01r\x03\x06origin\x01\x0borientation\x03\x06radiusv\x04\0\x03tip\x03\ -\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainp\ -ut-type\x03\0\x11\x01r\x04\x02idw\x05input\x12\x08distancev\x05ordery\x04\0\x0bi\ -nput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x06\x02\x03\0\x03\x0binput\ --event\x01B\x0a\x02\x03\x02\x01\x07\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-\ -handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\x04\ -\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\"[method]input-handler.handl\ -e-input\x01\x07\x03\x01\x13wired:input/handler\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\ -\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\ -\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\ -\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07\ -dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\ -\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04\ -self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05va\ -luev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0fri\ -gid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\ -\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\ -\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[met\ -hod]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\ -\x01\x13wired:physics/types\x05\x09\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput\ --handler\x02\x03\0\0\x09transform\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0arig\ -id-body\x01BE\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\ -\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0d\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x0f\x02\x03\0\x06\x04node\x01B#\x02\x03\x02\x01\x04\x04\0\x04\ -vec3\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x01m\x03\x06center\x03e\ -nd\x05start\x04\0\x09alignment\x03\0\x04\x04\0\x09container\x03\x01\x01i\x06\x01\ -@\x01\x04size\x01\0\x07\x04\0\x16[constructor]container\x01\x08\x01h\x06\x01@\x01\ -\x04self\x09\0\x07\x04\0\x15[method]container.ref\x01\x0a\x01i\x03\x01@\x01\x04s\ -elf\x09\0\x0b\x04\0\x16[method]container.root\x01\x0c\x04\0\x17[method]container\ -.inner\x01\x0c\x01p\x07\x01@\x01\x04self\x09\0\x0d\x04\0\x1f[method]container.li\ -st-children\x01\x0e\x01@\x02\x04self\x09\x05child\x09\x01\0\x04\0\x1b[method]con\ -tainer.add-child\x01\x0f\x04\0\x1e[method]container.remove-child\x01\x0f\x01@\x01\ -\x04self\x09\0\x01\x04\0\x16[method]container.size\x01\x10\x01@\x02\x04self\x09\x05\ -value\x01\x01\0\x04\0\x1a[method]container.set-size\x01\x11\x01@\x01\x04self\x09\ -\0\x05\x04\0\x19[method]container.align-x\x01\x12\x04\0\x19[method]container.ali\ -gn-y\x01\x12\x04\0\x19[method]container.align-z\x01\x12\x01@\x02\x04self\x09\x05\ -value\x05\x01\0\x04\0\x1d[method]container.set-align-x\x01\x13\x04\0\x1d[method]\ -container.set-align-y\x01\x13\x04\0\x1d[method]container.set-align-z\x01\x13\x04\ -\x01\x16unavi:layout/container\x05\x11\x02\x03\0\x07\x09container\x01B\x16\x02\x03\ -\x02\x01\x12\x04\0\x09container\x03\0\0\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\ -\x04\0\x04grid\x03\x01\x01i\x04\x01@\x02\x04size\x03\x04rows\x03\0\x05\x04\0\x11\ -[constructor]grid\x01\x06\x01h\x04\x01i\x01\x01@\x01\x04self\x07\0\x08\x04\0\x11\ -[method]grid.root\x01\x09\x01p\x08\x01@\x01\x04self\x07\0\x0a\x04\0\x12[method]g\ -rid.cells\x01\x0b\x01k\x08\x01@\x04\x04self\x07\x01xy\x01yy\x01zy\0\x0c\x04\0\x11\ -[method]grid.cell\x01\x0d\x01@\x01\x04self\x07\0\x03\x04\0\x11[method]grid.rows\x01\ -\x0e\x01@\x02\x04self\x07\x05value\x03\x01\0\x04\0\x15[method]grid.set-rows\x01\x0f\ -\x04\x01\x11unavi:layout/grid\x05\x13\x04\x01\x12unavi:layout/guest\x04\0\x0b\x0b\ -\x01\0\x05guest\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\ -\x070.208.1\x10wit-bindgen-rust\x060.25.0"; +bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0borientation\x03\x06origin\x01\x04\0\x03\ +ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x04\0\x0ainput-data\x03\ +\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\0\x04\0\x0cinput-action\x03\0\x11\x01\ +r\x03\x02idw\x06action\x12\x04data\x10\x04\0\x0binput-event\x03\0\x13\x03\x01\x11\ +wired:input/types\x05\x06\x02\x03\0\x03\x0binput-event\x01B\x0a\x02\x03\x02\x01\x07\ +\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\ +\x04\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\ +\0\x06\x04\0\x1a[method]input-handler.next\x01\x07\x03\x01\x13wired:input/handle\ +r\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\ +\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06\ +cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\ +\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0f\ +rigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constru\ +ctor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider\ +.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.\ +set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[con\ +structor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method\ +]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\0\x1d[met\ +hod]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\x12\x04\ +\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/types\x05\x09\ +\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput-handler\x02\x03\0\0\x09transform\x02\ +\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BE\x02\x03\x02\x01\x0a\x04\ +\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\x02\x03\x02\ +\x01\x0c\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0d\x04\0\x08collider\x03\0\ +\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x0f\x02\x03\0\ +\x06\x04node\x01B#\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x02\x03\x02\x01\x10\ +\x04\0\x04node\x03\0\x02\x01m\x03\x06center\x03end\x05start\x04\0\x09alignment\x03\ +\0\x04\x04\0\x09container\x03\x01\x01i\x06\x01@\x01\x04size\x01\0\x07\x04\0\x16[\ +constructor]container\x01\x08\x01h\x06\x01@\x01\x04self\x09\0\x07\x04\0\x15[meth\ +od]container.ref\x01\x0a\x01i\x03\x01@\x01\x04self\x09\0\x0b\x04\0\x16[method]co\ +ntainer.root\x01\x0c\x04\0\x17[method]container.inner\x01\x0c\x01p\x07\x01@\x01\x04\ +self\x09\0\x0d\x04\0\x1f[method]container.list-children\x01\x0e\x01@\x02\x04self\ +\x09\x05child\x09\x01\0\x04\0\x1b[method]container.add-child\x01\x0f\x04\0\x1e[m\ +ethod]container.remove-child\x01\x0f\x01@\x01\x04self\x09\0\x01\x04\0\x16[method\ +]container.size\x01\x10\x01@\x02\x04self\x09\x05value\x01\x01\0\x04\0\x1a[method\ +]container.set-size\x01\x11\x01@\x01\x04self\x09\0\x05\x04\0\x19[method]containe\ +r.align-x\x01\x12\x04\0\x19[method]container.align-y\x01\x12\x04\0\x19[method]co\ +ntainer.align-z\x01\x12\x01@\x02\x04self\x09\x05value\x05\x01\0\x04\0\x1d[method\ +]container.set-align-x\x01\x13\x04\0\x1d[method]container.set-align-y\x01\x13\x04\ +\0\x1d[method]container.set-align-z\x01\x13\x04\x01\x16unavi:layout/container\x05\ +\x11\x02\x03\0\x07\x09container\x01B\x16\x02\x03\x02\x01\x12\x04\0\x09container\x03\ +\0\0\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\x04\0\x04grid\x03\x01\x01i\x04\x01\ +@\x02\x04size\x03\x04rows\x03\0\x05\x04\0\x11[constructor]grid\x01\x06\x01h\x04\x01\ +i\x01\x01@\x01\x04self\x07\0\x08\x04\0\x11[method]grid.root\x01\x09\x01p\x08\x01\ +@\x01\x04self\x07\0\x0a\x04\0\x12[method]grid.cells\x01\x0b\x01k\x08\x01@\x04\x04\ +self\x07\x01xy\x01yy\x01zy\0\x0c\x04\0\x11[method]grid.cell\x01\x0d\x01@\x01\x04\ +self\x07\0\x03\x04\0\x11[method]grid.rows\x01\x0e\x01@\x02\x04self\x07\x05value\x03\ +\x01\0\x04\0\x15[method]grid.set-rows\x01\x0f\x04\x01\x11unavi:layout/grid\x05\x13\ +\x04\x01\x12unavi:layout/guest\x04\0\x0b\x0b\x01\0\x05guest\x03\0\0\0G\x09produc\ +ers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-bindgen-rust\x060\ +.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wasm/unavi-scene/src/bindings.rs b/wasm/unavi-scene/src/bindings.rs index 636ac0b3b..caa94d114 100644 --- a/wasm/unavi-scene/src/bindings.rs +++ b/wasm/unavi-scene/src/bindings.rs @@ -111,46 +111,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -159,20 +153,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -256,16 +247,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -281,535 +272,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -818,72 +818,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -6146,8 +6115,8 @@ pub(crate) use __export_guest_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:guest:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 7338] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xae8\x01A\x02\x01A\"\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 7313] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x958\x01A\x02\x01A\"\ \x01B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\ \0\x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01\ r\x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ @@ -6183,133 +6152,133 @@ method]mesh.create-primitive\x01\x1a\x01@\x02\x04self\x12\x05value\x17\x01\0\x04 \0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\x06distal\x07\x08proximal\x07\x0ametac\ arpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\x01r\x09\x04side\x05\x05thumb\x09\x05\ index\x09\x06middle\x09\x04ring\x09\x06little\x09\x04palm\x07\x05wrist\x07\x05el\ -bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06origin\x01\x0borientation\x03\x04\0\x03\ -ray\x03\0\x0d\x01r\x03\x06origin\x01\x0borientation\x03\x06radiusv\x04\0\x03tip\x03\ -\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainp\ -ut-type\x03\0\x11\x01r\x04\x02idw\x05input\x12\x08distancev\x05ordery\x04\0\x0bi\ -nput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x06\x02\x03\0\x03\x0binput\ --event\x01B\x0a\x02\x03\x02\x01\x07\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-\ -handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\x04\ -\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\"[method]input-handler.handl\ -e-input\x01\x07\x03\x01\x13wired:input/handler\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\ -\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\ -\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\ -\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07\ -dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\ -\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04\ -self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05va\ -luev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0fri\ -gid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\ -\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\ -\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[met\ -hod]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\ -\x01\x13wired:physics/types\x05\x09\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput\ --handler\x02\x03\0\0\x09transform\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0arig\ -id-body\x01BE\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\ -\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0d\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x0f\x02\x03\0\x06\x04node\x01B\x15\x02\x03\x02\x01\x10\x04\0\ -\x04node\x03\0\0\x04\0\x05scene\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x12[construc\ -tor]scene\x01\x04\x01h\x02\x01@\x01\x04self\x05\0y\x04\0\x10[method]scene.id\x01\ -\x06\x01@\x01\x04self\x05\0s\x04\0\x12[method]scene.name\x01\x07\x01@\x02\x04sel\ -f\x05\x05values\x01\0\x04\0\x16[method]scene.set-name\x01\x08\x01i\x01\x01p\x09\x01\ -@\x01\x04self\x05\0\x0a\x04\0\x13[method]scene.nodes\x01\x0b\x01h\x01\x01@\x02\x04\ -self\x05\x05value\x0c\x01\0\x04\0\x16[method]scene.add-node\x01\x0d\x04\0\x19[me\ -thod]scene.remove-node\x01\x0d\x03\x01\x11wired:scene/scene\x05\x11\x02\x03\0\x07\ -\x05scene\x01B5\x02\x03\x02\x01\x02\x04\0\x08material\x03\0\0\x02\x03\x02\x01\x0a\ -\x04\0\x04mesh\x03\0\x02\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x04\x02\x03\x02\ -\x01\x12\x04\0\x05scene\x03\0\x06\x04\0\x04gltf\x03\x01\x01i\x08\x01@\0\0\x09\x04\ -\0\x11[constructor]gltf\x01\x0a\x01h\x08\x01i\x01\x01p\x0c\x01@\x01\x04self\x0b\0\ -\x0d\x04\0\x1b[method]gltf.list-materials\x01\x0e\x01h\x01\x01@\x02\x04self\x0b\x05\ -value\x0f\x01\0\x04\0\x19[method]gltf.add-material\x01\x10\x04\0\x1c[method]gltf\ -.remove-material\x01\x10\x01i\x03\x01p\x11\x01@\x01\x04self\x0b\0\x12\x04\0\x18[\ -method]gltf.list-meshes\x01\x13\x01h\x03\x01@\x02\x04self\x0b\x05value\x14\x01\0\ -\x04\0\x15[method]gltf.add-mesh\x01\x15\x04\0\x18[method]gltf.remove-mesh\x01\x15\ -\x01i\x05\x01p\x16\x01@\x01\x04self\x0b\0\x17\x04\0\x17[method]gltf.list-nodes\x01\ -\x18\x01h\x05\x01@\x02\x04self\x0b\x05value\x19\x01\0\x04\0\x15[method]gltf.add-\ -node\x01\x1a\x04\0\x18[method]gltf.remove-node\x01\x1a\x01i\x07\x01p\x1b\x01@\x01\ -\x04self\x0b\0\x1c\x04\0\x18[method]gltf.list-scenes\x01\x1d\x01h\x07\x01@\x02\x04\ -self\x0b\x05value\x1e\x01\0\x04\0\x16[method]gltf.add-scene\x01\x1f\x04\0\x19[me\ -thod]gltf.remove-scene\x01\x1f\x01k\x1b\x01@\x01\x04self\x0b\0\x20\x04\0\x19[met\ -hod]gltf.active-scene\x01!\x01k\x1e\x01@\x02\x04self\x0b\x05value\"\x01\0\x04\0\x1d\ -[method]gltf.set-active-scene\x01#\x04\0\x1a[method]gltf.default-scene\x01!\x04\0\ -\x1e[method]gltf.set-default-scene\x01\x1f\x03\x01\x10wired:scene/gltf\x05\x13\x02\ -\x03\0\x08\x04gltf\x01Bt\x02\x03\x02\x01\x14\x04\0\x04gltf\x03\0\0\x02\x03\x02\x01\ -\x10\x04\0\x04node\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x04\ -\0\x04glxf\x03\x01\x04\0\x0aasset-gltf\x03\x01\x04\0\x0aasset-glxf\x03\x01\x01i\x07\ -\x01i\x08\x01q\x02\x04gltf\x01\x09\0\x04glxf\x01\x0a\0\x04\0\x05asset\x03\0\x0b\x01\ -h\x07\x01h\x08\x01q\x02\x04gltf\x01\x0d\0\x04glxf\x01\x0e\0\x04\0\x0casset-borro\ -w\x03\0\x0f\x04\0\x09glxf-node\x03\x01\x01i\x11\x01p\x12\x01q\x02\x05asset\x01\x0c\ -\0\x05nodes\x01\x13\0\x04\0\x08children\x03\0\x14\x01h\x11\x01p\x16\x01q\x02\x05\ -asset\x01\x10\0\x05nodes\x01\x17\0\x04\0\x0fchildren-borrow\x03\0\x18\x04\0\x0ag\ -lxf-scene\x03\x01\x01i\x06\x01@\0\0\x1b\x04\0\x11[constructor]glxf\x01\x1c\x01h\x06\ -\x01p\x0c\x01@\x01\x04self\x1d\0\x1e\x04\0\x18[method]glxf.list-assets\x01\x1f\x01\ -@\x02\x04self\x1d\x05value\x10\x01\0\x04\0\x16[method]glxf.add-asset\x01\x20\x04\ -\0\x19[method]glxf.remove-asset\x01\x20\x01@\x01\x04self\x1d\0\x13\x04\0\x17[met\ -hod]glxf.list-nodes\x01!\x01@\x02\x04self\x1d\x05value\x16\x01\0\x04\0\x15[metho\ -d]glxf.add-node\x01\"\x04\0\x18[method]glxf.remove-node\x01\"\x01i\x1a\x01p#\x01\ -@\x01\x04self\x1d\0$\x04\0\x18[method]glxf.list-scenes\x01%\x01h\x1a\x01@\x02\x04\ -self\x1d\x05value&\x01\0\x04\0\x16[method]glxf.add-scene\x01'\x04\0\x19[method]g\ -lxf.remove-scene\x01'\x01k#\x01@\x01\x04self\x1d\0(\x04\0\x19[method]glxf.active\ --scene\x01)\x01k&\x01@\x02\x04self\x1d\x05value*\x01\0\x04\0\x1d[method]glxf.set\ --active-scene\x01+\x04\0\x1a[method]glxf.default-scene\x01)\x04\0\x1e[method]glx\ -f.set-default-scene\x01'\x01h\x01\x01@\x01\x08document,\0\x09\x04\0\x17[construc\ -tor]asset-gltf\x01-\x01i\x01\x01@\x01\x04self\x0d\0.\x04\0\x1b[method]asset-gltf\ -.document\x01/\x01i\x03\x01p0\x01@\x01\x04self\x0d\01\x04\0\x1d[method]asset-glt\ -f.list-nodes\x012\x01h\x03\x01@\x02\x04self\x0d\x05value3\x01\0\x04\0\x1b[method\ -]asset-gltf.add-node\x014\x04\0\x1e[method]asset-gltf.remove-node\x014\x01@\x01\x08\ -document\x1d\0\x0a\x04\0\x17[constructor]asset-glxf\x015\x01@\x01\x04self\x0e\0\x1b\ -\x04\0\x1b[method]asset-glxf.document\x016\x01@\x01\x04self\x0e\0\x13\x04\0\x1d[\ -method]asset-glxf.list-nodes\x017\x01@\x02\x04self\x0e\x05value\x16\x01\0\x04\0\x1b\ -[method]asset-glxf.add-node\x018\x04\0\x1e[method]asset-glxf.remove-node\x018\x01\ -@\0\0\x12\x04\0\x16[constructor]glxf-node\x019\x01@\x01\x04self\x16\0y\x04\0\x14\ -[method]glxf-node.id\x01:\x01@\x01\x04self\x16\0s\x04\0\x16[method]glxf-node.nam\ -e\x01;\x01@\x02\x04self\x16\x05values\x01\0\x04\0\x1a[method]glxf-node.set-name\x01\ -<\x01@\x01\x04self\x16\0\x05\x04\0\x1b[method]glxf-node.transform\x01=\x01@\x02\x04\ -self\x16\x05value\x05\x01\0\x04\0\x1f[method]glxf-node.set-transform\x01>\x01k\x12\ -\x01@\x01\x04self\x16\0?\x04\0\x18[method]glxf-node.parent\x01@\x01k\x15\x01@\x01\ -\x04self\x16\0\xc1\0\x04\0\x1a[method]glxf-node.children\x01B\x01k\x19\x01@\x02\x04\ -self\x16\x05value\xc3\0\x01\0\x04\0\x1e[method]glxf-node.set-children\x01D\x01@\0\ -\0#\x04\0\x17[constructor]glxf-scene\x01E\x01@\x01\x04self&\0y\x04\0\x15[method]\ -glxf-scene.id\x01F\x01@\x01\x04self&\0s\x04\0\x17[method]glxf-scene.name\x01G\x01\ -@\x02\x04self&\x05values\x01\0\x04\0\x1b[method]glxf-scene.set-name\x01H\x01@\x01\ -\x04self&\0\x13\x04\0\x18[method]glxf-scene.nodes\x01I\x01@\x02\x04self&\x04node\ -\x16\x01\0\x04\0\x1b[method]glxf-scene.add-node\x01J\x04\0\x1e[method]glxf-scene\ -.remove-node\x01J\x04\0\x08get-root\x01\x1c\x03\x01\x10wired:scene/glxf\x05\x15\x01\ -B\"\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04\ -node\x03\0\x02\x04\0\x04root\x03\x01\x04\0\x05scene\x03\x01\x01i\x05\x01p\x06\x01\ -@\0\0\x07\x04\0\x18[static]root.list-scenes\x01\x08\x01h\x05\x01@\x01\x05value\x09\ -\x01\0\x04\0\x16[static]root.add-scene\x01\x0a\x04\0\x19[static]root.remove-scen\ -e\x01\x0a\x01@\0\0\x06\x04\0\x12[constructor]scene\x01\x0b\x01i\x03\x01p\x0c\x01\ -@\x01\x04self\x09\0\x0d\x04\0\x18[method]scene.list-nodes\x01\x0e\x01@\x01\x04se\ -lf\x09\0\x0c\x04\0\x19[method]scene.create-node\x01\x0f\x01h\x03\x01@\x02\x04sel\ -f\x09\x05value\x10\x01\0\x04\0\x16[method]scene.add-node\x01\x11\x04\0\x19[metho\ -d]scene.remove-node\x01\x11\x01@\x01\x04self\x09\0\x01\x04\0\x17[method]scene.tr\ -ansform\x01\x12\x01@\x02\x04self\x09\x05value\x01\x01\0\x04\0\x1b[method]scene.s\ -et-transform\x01\x13\x01@\x01\x04self\x09\0\x7f\x04\0\x14[method]scene.active\x01\ -\x14\x01@\x02\x04self\x09\x05value\x7f\x01\0\x04\0\x18[method]scene.set-active\x01\ -\x15\x04\x01\x0funavi:scene/api\x05\x16\x04\x01\x11unavi:scene/guest\x04\0\x0b\x0b\ -\x01\0\x05guest\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\ -\x070.208.1\x10wit-bindgen-rust\x060.25.0"; +bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0borientation\x03\x06origin\x01\x04\0\x03\ +ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x04\0\x0ainput-data\x03\ +\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\0\x04\0\x0cinput-action\x03\0\x11\x01\ +r\x03\x02idw\x06action\x12\x04data\x10\x04\0\x0binput-event\x03\0\x13\x03\x01\x11\ +wired:input/types\x05\x06\x02\x03\0\x03\x0binput-event\x01B\x0a\x02\x03\x02\x01\x07\ +\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\ +\x04\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\ +\0\x06\x04\0\x1a[method]input-handler.next\x01\x07\x03\x01\x13wired:input/handle\ +r\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\ +\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06\ +cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\ +\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0f\ +rigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constru\ +ctor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider\ +.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.\ +set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[con\ +structor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method\ +]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\0\x1d[met\ +hod]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\x12\x04\ +\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/types\x05\x09\ +\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput-handler\x02\x03\0\0\x09transform\x02\ +\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BE\x02\x03\x02\x01\x0a\x04\ +\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\x02\x03\x02\ +\x01\x0c\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0d\x04\0\x08collider\x03\0\ +\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x0f\x02\x03\0\ +\x06\x04node\x01B\x15\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\0\x04\0\x05scene\x03\ +\x01\x01i\x02\x01@\0\0\x03\x04\0\x12[constructor]scene\x01\x04\x01h\x02\x01@\x01\ +\x04self\x05\0y\x04\0\x10[method]scene.id\x01\x06\x01@\x01\x04self\x05\0s\x04\0\x12\ +[method]scene.name\x01\x07\x01@\x02\x04self\x05\x05values\x01\0\x04\0\x16[method\ +]scene.set-name\x01\x08\x01i\x01\x01p\x09\x01@\x01\x04self\x05\0\x0a\x04\0\x13[m\ +ethod]scene.nodes\x01\x0b\x01h\x01\x01@\x02\x04self\x05\x05value\x0c\x01\0\x04\0\ +\x16[method]scene.add-node\x01\x0d\x04\0\x19[method]scene.remove-node\x01\x0d\x03\ +\x01\x11wired:scene/scene\x05\x11\x02\x03\0\x07\x05scene\x01B5\x02\x03\x02\x01\x02\ +\x04\0\x08material\x03\0\0\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x02\x02\x03\x02\ +\x01\x10\x04\0\x04node\x03\0\x04\x02\x03\x02\x01\x12\x04\0\x05scene\x03\0\x06\x04\ +\0\x04gltf\x03\x01\x01i\x08\x01@\0\0\x09\x04\0\x11[constructor]gltf\x01\x0a\x01h\ +\x08\x01i\x01\x01p\x0c\x01@\x01\x04self\x0b\0\x0d\x04\0\x1b[method]gltf.list-mat\ +erials\x01\x0e\x01h\x01\x01@\x02\x04self\x0b\x05value\x0f\x01\0\x04\0\x19[method\ +]gltf.add-material\x01\x10\x04\0\x1c[method]gltf.remove-material\x01\x10\x01i\x03\ +\x01p\x11\x01@\x01\x04self\x0b\0\x12\x04\0\x18[method]gltf.list-meshes\x01\x13\x01\ +h\x03\x01@\x02\x04self\x0b\x05value\x14\x01\0\x04\0\x15[method]gltf.add-mesh\x01\ +\x15\x04\0\x18[method]gltf.remove-mesh\x01\x15\x01i\x05\x01p\x16\x01@\x01\x04sel\ +f\x0b\0\x17\x04\0\x17[method]gltf.list-nodes\x01\x18\x01h\x05\x01@\x02\x04self\x0b\ +\x05value\x19\x01\0\x04\0\x15[method]gltf.add-node\x01\x1a\x04\0\x18[method]gltf\ +.remove-node\x01\x1a\x01i\x07\x01p\x1b\x01@\x01\x04self\x0b\0\x1c\x04\0\x18[meth\ +od]gltf.list-scenes\x01\x1d\x01h\x07\x01@\x02\x04self\x0b\x05value\x1e\x01\0\x04\ +\0\x16[method]gltf.add-scene\x01\x1f\x04\0\x19[method]gltf.remove-scene\x01\x1f\x01\ +k\x1b\x01@\x01\x04self\x0b\0\x20\x04\0\x19[method]gltf.active-scene\x01!\x01k\x1e\ +\x01@\x02\x04self\x0b\x05value\"\x01\0\x04\0\x1d[method]gltf.set-active-scene\x01\ +#\x04\0\x1a[method]gltf.default-scene\x01!\x04\0\x1e[method]gltf.set-default-sce\ +ne\x01\x1f\x03\x01\x10wired:scene/gltf\x05\x13\x02\x03\0\x08\x04gltf\x01Bt\x02\x03\ +\x02\x01\x14\x04\0\x04gltf\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x02\ +\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x04\0\x04glxf\x03\x01\x04\0\x0aass\ +et-gltf\x03\x01\x04\0\x0aasset-glxf\x03\x01\x01i\x07\x01i\x08\x01q\x02\x04gltf\x01\ +\x09\0\x04glxf\x01\x0a\0\x04\0\x05asset\x03\0\x0b\x01h\x07\x01h\x08\x01q\x02\x04\ +gltf\x01\x0d\0\x04glxf\x01\x0e\0\x04\0\x0casset-borrow\x03\0\x0f\x04\0\x09glxf-n\ +ode\x03\x01\x01i\x11\x01p\x12\x01q\x02\x05asset\x01\x0c\0\x05nodes\x01\x13\0\x04\ +\0\x08children\x03\0\x14\x01h\x11\x01p\x16\x01q\x02\x05asset\x01\x10\0\x05nodes\x01\ +\x17\0\x04\0\x0fchildren-borrow\x03\0\x18\x04\0\x0aglxf-scene\x03\x01\x01i\x06\x01\ +@\0\0\x1b\x04\0\x11[constructor]glxf\x01\x1c\x01h\x06\x01p\x0c\x01@\x01\x04self\x1d\ +\0\x1e\x04\0\x18[method]glxf.list-assets\x01\x1f\x01@\x02\x04self\x1d\x05value\x10\ +\x01\0\x04\0\x16[method]glxf.add-asset\x01\x20\x04\0\x19[method]glxf.remove-asse\ +t\x01\x20\x01@\x01\x04self\x1d\0\x13\x04\0\x17[method]glxf.list-nodes\x01!\x01@\x02\ +\x04self\x1d\x05value\x16\x01\0\x04\0\x15[method]glxf.add-node\x01\"\x04\0\x18[m\ +ethod]glxf.remove-node\x01\"\x01i\x1a\x01p#\x01@\x01\x04self\x1d\0$\x04\0\x18[me\ +thod]glxf.list-scenes\x01%\x01h\x1a\x01@\x02\x04self\x1d\x05value&\x01\0\x04\0\x16\ +[method]glxf.add-scene\x01'\x04\0\x19[method]glxf.remove-scene\x01'\x01k#\x01@\x01\ +\x04self\x1d\0(\x04\0\x19[method]glxf.active-scene\x01)\x01k&\x01@\x02\x04self\x1d\ +\x05value*\x01\0\x04\0\x1d[method]glxf.set-active-scene\x01+\x04\0\x1a[method]gl\ +xf.default-scene\x01)\x04\0\x1e[method]glxf.set-default-scene\x01'\x01h\x01\x01@\ +\x01\x08document,\0\x09\x04\0\x17[constructor]asset-gltf\x01-\x01i\x01\x01@\x01\x04\ +self\x0d\0.\x04\0\x1b[method]asset-gltf.document\x01/\x01i\x03\x01p0\x01@\x01\x04\ +self\x0d\01\x04\0\x1d[method]asset-gltf.list-nodes\x012\x01h\x03\x01@\x02\x04sel\ +f\x0d\x05value3\x01\0\x04\0\x1b[method]asset-gltf.add-node\x014\x04\0\x1e[method\ +]asset-gltf.remove-node\x014\x01@\x01\x08document\x1d\0\x0a\x04\0\x17[constructo\ +r]asset-glxf\x015\x01@\x01\x04self\x0e\0\x1b\x04\0\x1b[method]asset-glxf.documen\ +t\x016\x01@\x01\x04self\x0e\0\x13\x04\0\x1d[method]asset-glxf.list-nodes\x017\x01\ +@\x02\x04self\x0e\x05value\x16\x01\0\x04\0\x1b[method]asset-glxf.add-node\x018\x04\ +\0\x1e[method]asset-glxf.remove-node\x018\x01@\0\0\x12\x04\0\x16[constructor]glx\ +f-node\x019\x01@\x01\x04self\x16\0y\x04\0\x14[method]glxf-node.id\x01:\x01@\x01\x04\ +self\x16\0s\x04\0\x16[method]glxf-node.name\x01;\x01@\x02\x04self\x16\x05values\x01\ +\0\x04\0\x1a[method]glxf-node.set-name\x01<\x01@\x01\x04self\x16\0\x05\x04\0\x1b\ +[method]glxf-node.transform\x01=\x01@\x02\x04self\x16\x05value\x05\x01\0\x04\0\x1f\ +[method]glxf-node.set-transform\x01>\x01k\x12\x01@\x01\x04self\x16\0?\x04\0\x18[\ +method]glxf-node.parent\x01@\x01k\x15\x01@\x01\x04self\x16\0\xc1\0\x04\0\x1a[met\ +hod]glxf-node.children\x01B\x01k\x19\x01@\x02\x04self\x16\x05value\xc3\0\x01\0\x04\ +\0\x1e[method]glxf-node.set-children\x01D\x01@\0\0#\x04\0\x17[constructor]glxf-s\ +cene\x01E\x01@\x01\x04self&\0y\x04\0\x15[method]glxf-scene.id\x01F\x01@\x01\x04s\ +elf&\0s\x04\0\x17[method]glxf-scene.name\x01G\x01@\x02\x04self&\x05values\x01\0\x04\ +\0\x1b[method]glxf-scene.set-name\x01H\x01@\x01\x04self&\0\x13\x04\0\x18[method]\ +glxf-scene.nodes\x01I\x01@\x02\x04self&\x04node\x16\x01\0\x04\0\x1b[method]glxf-\ +scene.add-node\x01J\x04\0\x1e[method]glxf-scene.remove-node\x01J\x04\0\x08get-ro\ +ot\x01\x1c\x03\x01\x10wired:scene/glxf\x05\x15\x01B\"\x02\x03\x02\x01\x0c\x04\0\x09\ +transform\x03\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x04\0\x04root\x03\x01\ +\x04\0\x05scene\x03\x01\x01i\x05\x01p\x06\x01@\0\0\x07\x04\0\x18[static]root.lis\ +t-scenes\x01\x08\x01h\x05\x01@\x01\x05value\x09\x01\0\x04\0\x16[static]root.add-\ +scene\x01\x0a\x04\0\x19[static]root.remove-scene\x01\x0a\x01@\0\0\x06\x04\0\x12[\ +constructor]scene\x01\x0b\x01i\x03\x01p\x0c\x01@\x01\x04self\x09\0\x0d\x04\0\x18\ +[method]scene.list-nodes\x01\x0e\x01@\x01\x04self\x09\0\x0c\x04\0\x19[method]sce\ +ne.create-node\x01\x0f\x01h\x03\x01@\x02\x04self\x09\x05value\x10\x01\0\x04\0\x16\ +[method]scene.add-node\x01\x11\x04\0\x19[method]scene.remove-node\x01\x11\x01@\x01\ +\x04self\x09\0\x01\x04\0\x17[method]scene.transform\x01\x12\x01@\x02\x04self\x09\ +\x05value\x01\x01\0\x04\0\x1b[method]scene.set-transform\x01\x13\x01@\x01\x04sel\ +f\x09\0\x7f\x04\0\x14[method]scene.active\x01\x14\x01@\x02\x04self\x09\x05value\x7f\ +\x01\0\x04\0\x18[method]scene.set-active\x01\x15\x04\x01\x0funavi:scene/api\x05\x16\ +\x04\x01\x11unavi:scene/guest\x04\0\x0b\x0b\x01\0\x05guest\x03\0\0\0G\x09produce\ +rs\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-bindgen-rust\x060.\ +25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wasm/unavi-shapes/src/bindings.rs b/wasm/unavi-shapes/src/bindings.rs index 3cfef1074..b72229a3c 100644 --- a/wasm/unavi-shapes/src/bindings.rs +++ b/wasm/unavi-shapes/src/bindings.rs @@ -111,46 +111,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -159,20 +153,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -256,16 +247,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -281,535 +272,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -818,72 +818,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -4743,8 +4712,8 @@ pub(crate) use __export_guest_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:guest:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 5388] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x90)\x01A\x02\x01A\x1d\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 5363] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xf7(\x01A\x02\x01A\x1d\ \x01B\x04\x01m\x04\x05debug\x04info\x04warn\x05error\x04\0\x09log-level\x03\0\0\x01\ @\x02\x05level\x01\x07messages\x01\0\x04\0\x03log\x01\x02\x03\x01\x0dwired:log/a\ pi\x05\0\x01B\x13\x01r\x04\x01rv\x01gv\x01bv\x01av\x04\0\x05color\x03\0\0\x04\0\x08\ @@ -4782,88 +4751,87 @@ t\x04\0\x09hand-side\x03\0\x04\x01r\x03\x0btranslation\x01\x08rotation\x03\x06ra diusv\x04\0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\x06distal\x07\x08proximal\x07\ \x0ametacarpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\x01r\x09\x04side\x05\x05th\ umb\x09\x05index\x09\x06middle\x09\x04ring\x09\x06little\x09\x04palm\x07\x05wris\ -t\x07\x05elbow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06origin\x01\x0borientation\ -\x03\x04\0\x03ray\x03\0\x0d\x01r\x03\x06origin\x01\x0borientation\x03\x06radiusv\ -\x04\0\x03tip\x03\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x03tip\x01\x10\ -\0\x04\0\x0ainput-type\x03\0\x11\x01r\x04\x02idw\x05input\x12\x08distancev\x05or\ -dery\x04\0\x0binput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x07\x02\x03\ -\0\x04\x0binput-event\x01B\x0a\x02\x03\x02\x01\x08\x04\0\x0binput-event\x03\0\0\x04\ -\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-ha\ -ndler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\"[method]input-\ -handler.handle-input\x01\x07\x03\x01\x13wired:input/handler\x05\x09\x01B\x1c\x02\ -\x03\x02\x01\x05\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06hei\ -ghtv\x06radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08\ -cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\ -\x03\x01\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\ -\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\ -\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\ -\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01\ -i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\ -\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\ -\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\ -\x13\x04\0\x19[method]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-\ -linvel\x01\x13\x03\x01\x13wired:physics/types\x05\x0a\x02\x03\0\x02\x04mesh\x02\x03\ -\0\x05\x0dinput-handler\x02\x03\0\x03\x09transform\x02\x03\0\x06\x08collider\x02\ -\x03\0\x06\x0arigid-body\x01BE\x02\x03\x02\x01\x0b\x04\0\x04mesh\x03\0\0\x02\x03\ -\x02\x01\x0c\x04\0\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0d\x04\0\x09trans\ -form\x03\0\x04\x02\x03\x02\x01\x0e\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0f\ -\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\ -\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]\ -node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01\ -@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05\ -values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\ -\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\ -\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\ -\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01\ -@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16\ -[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a\ -[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\ -\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\ -\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\ -\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\ -\x05value#\x01\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\ -\x04self\x0d\0&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04\ -self\x0d\x05value)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k\ -+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k\ -.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x01\ -0\x03\x01\x10wired:scene/node\x05\x10\x02\x03\0\x03\x04vec2\x02\x03\0\x07\x04nod\ -e\x01BY\x02\x03\x02\x01\x11\x04\0\x04vec2\x03\0\0\x02\x03\x02\x01\x05\x04\0\x04v\ -ec3\x03\0\x02\x02\x03\x02\x01\x0b\x04\0\x04mesh\x03\0\x04\x02\x03\x02\x01\x12\x04\ -\0\x04node\x03\0\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cylinder\x03\x01\x04\0\x06\ -cuboid\x03\x01\x01r\x01\x0csubdivisions}\x04\0\x0asphere-ico\x03\0\x0b\x01r\x02\x07\ -sectors}\x06stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\x03ico\x01\x0c\0\x02uv\ -\x01\x0e\0\x04\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\x03\x01\x01i\x08\x01@\x01\ -\x04size\x01\0\x12\x04\0\x16[constructor]rectangle\x01\x13\x01h\x08\x01@\x01\x04\ -self\x14\0\x01\x04\0\x16[method]rectangle.size\x01\x15\x01@\x02\x04self\x14\x05v\ -alue\x01\x01\0\x04\0\x1a[method]rectangle.set-size\x01\x16\x01i\x05\x01@\x01\x04\ -self\x14\0\x17\x04\0\x19[method]rectangle.to-mesh\x01\x18\x01i\x07\x01@\x01\x04s\ -elf\x14\0\x19\x04\0\x19[method]rectangle.to-node\x01\x1a\x04\0![method]rectangle\ -.to-physics-node\x01\x1a\x01i\x09\x01@\x02\x06radiusv\x06heightv\0\x1b\x04\0\x15\ -[constructor]cylinder\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\x7f\x04\0\x14[meth\ -od]cylinder.cap\x01\x1e\x01@\x02\x04self\x1d\x05value\x7f\x01\0\x04\0\x18[method\ -]cylinder.set-cap\x01\x1f\x01@\x01\x04self\x1d\0v\x04\0\x17[method]cylinder.heig\ -ht\x01\x20\x01@\x02\x04self\x1d\x05valuev\x01\0\x04\0\x1b[method]cylinder.set-he\ -ight\x01!\x04\0\x17[method]cylinder.radius\x01\x20\x04\0\x1b[method]cylinder.set\ --radius\x01!\x01@\x01\x04self\x1d\0}\x04\0\x1b[method]cylinder.resolution\x01\"\x01\ -@\x02\x04self\x1d\x05value}\x01\0\x04\0\x1f[method]cylinder.set-resolution\x01#\x04\ -\0\x19[method]cylinder.segments\x01\"\x04\0\x1d[method]cylinder.set-segments\x01\ -#\x01@\x01\x04self\x1d\0\x17\x04\0\x18[method]cylinder.to-mesh\x01$\x01@\x01\x04\ -self\x1d\0\x19\x04\0\x18[method]cylinder.to-node\x01%\x04\0\x20[method]cylinder.\ -to-physics-node\x01%\x01i\x0a\x01@\x01\x04size\x03\0&\x04\0\x13[constructor]cubo\ -id\x01'\x01h\x0a\x01@\x01\x04self(\0\x03\x04\0\x13[method]cuboid.size\x01)\x01@\x02\ -\x04self(\x05value\x03\x01\0\x04\0\x17[method]cuboid.set-size\x01*\x01@\x01\x04s\ -elf(\0\x17\x04\0\x16[method]cuboid.to-mesh\x01+\x01@\x01\x04self(\0\x19\x04\0\x16\ -[method]cuboid.to-node\x01,\x04\0\x1e[method]cuboid.to-physics-node\x01,\x01i\x11\ -\x01@\x01\x06radiusv\0-\x04\0\x16[static]sphere.new-ico\x01.\x04\0\x15[static]sp\ -here.new-uv\x01.\x01h\x11\x01@\x01\x04self/\0v\x04\0\x15[method]sphere.radius\x01\ -0\x01@\x02\x04self/\x05valuev\x01\0\x04\0\x19[method]sphere.set-radius\x011\x01@\ -\x01\x04self/\0\x10\x04\0\x13[method]sphere.kind\x012\x01@\x02\x04self/\x05value\ -\x10\x01\0\x04\0\x17[method]sphere.set-kind\x013\x01@\x01\x04self/\0\x17\x04\0\x16\ -[method]sphere.to-mesh\x014\x01@\x01\x04self/\0\x19\x04\0\x16[method]sphere.to-n\ -ode\x015\x04\0\x1e[method]sphere.to-physics-node\x015\x04\x01\x10unavi:shapes/ap\ -i\x05\x13\x04\x01\x12unavi:shapes/guest\x04\0\x0b\x0b\x01\0\x05guest\x03\0\0\0G\x09\ -producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-bindgen-rus\ -t\x060.25.0"; +t\x07\x05elbow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0borientation\x03\x06origin\ +\x01\x04\0\x03ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x04\0\x0a\ +input-data\x03\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\0\x04\0\x0cinput-actio\ +n\x03\0\x11\x01r\x03\x02idw\x06action\x12\x04data\x10\x04\0\x0binput-event\x03\0\ +\x13\x03\x01\x11wired:input/types\x05\x07\x02\x03\0\x04\x0binput-event\x01B\x0a\x02\ +\x03\x02\x01\x08\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01\ +i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\ +\x01@\x01\x04self\x05\0\x06\x04\0\x1a[method]input-handler.next\x01\x07\x03\x01\x13\ +wired:input/handler\x05\x09\x01B\x1c\x02\x03\x02\x01\x05\x04\0\x04vec3\x03\0\0\x04\ +\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\ +\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\ +\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09\ +kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\ +\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18\ +[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[\ +method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\ +\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\ +\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\ +\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\ +\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/typ\ +es\x05\x0a\x02\x03\0\x02\x04mesh\x02\x03\0\x05\x0dinput-handler\x02\x03\0\x03\x09\ +transform\x02\x03\0\x06\x08collider\x02\x03\0\x06\x0arigid-body\x01BE\x02\x03\x02\ +\x01\x0b\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0c\x04\0\x0dinput-handler\x03\0\x02\ +\x02\x03\x02\x01\x0d\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0e\x04\0\x08c\ +ollider\x03\0\x06\x02\x03\x02\x01\x0f\x04\0\x0arigid-body\x03\0\x08\x04\0\x04nod\ +e\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\ +\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\ +\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.nam\ +e\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\ +\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01\ +@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\ +\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\ +\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node\ +.global-transform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04se\ +lf\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01\ +k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01\ +k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\ +\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\ +\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node\ +.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.\ +rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[me\ +thod]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[m\ +ethod]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\ +\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x10\ +\x02\x03\0\x03\x04vec2\x02\x03\0\x07\x04node\x01BY\x02\x03\x02\x01\x11\x04\0\x04\ +vec2\x03\0\0\x02\x03\x02\x01\x05\x04\0\x04vec3\x03\0\x02\x02\x03\x02\x01\x0b\x04\ +\0\x04mesh\x03\0\x04\x02\x03\x02\x01\x12\x04\0\x04node\x03\0\x06\x04\0\x09rectan\ +gle\x03\x01\x04\0\x08cylinder\x03\x01\x04\0\x06cuboid\x03\x01\x01r\x01\x0csubdiv\ +isions}\x04\0\x0asphere-ico\x03\0\x0b\x01r\x02\x07sectors}\x06stacks}\x04\0\x09s\ +phere-uv\x03\0\x0d\x01q\x02\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\0\x0bsphere-kin\ +d\x03\0\x0f\x04\0\x06sphere\x03\x01\x01i\x08\x01@\x01\x04size\x01\0\x12\x04\0\x16\ +[constructor]rectangle\x01\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\x04\0\x16[met\ +hod]rectangle.size\x01\x15\x01@\x02\x04self\x14\x05value\x01\x01\0\x04\0\x1a[met\ +hod]rectangle.set-size\x01\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\x04\0\x19[met\ +hod]rectangle.to-mesh\x01\x18\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\0\x19[meth\ +od]rectangle.to-node\x01\x1a\x04\0![method]rectangle.to-physics-node\x01\x1a\x01\ +i\x09\x01@\x02\x06radiusv\x06heightv\0\x1b\x04\0\x15[constructor]cylinder\x01\x1c\ +\x01h\x09\x01@\x01\x04self\x1d\0\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\x01@\x02\ +\x04self\x1d\x05value\x7f\x01\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\x01@\x01\ +\x04self\x1d\0v\x04\0\x17[method]cylinder.height\x01\x20\x01@\x02\x04self\x1d\x05\ +valuev\x01\0\x04\0\x1b[method]cylinder.set-height\x01!\x04\0\x17[method]cylinder\ +.radius\x01\x20\x04\0\x1b[method]cylinder.set-radius\x01!\x01@\x01\x04self\x1d\0\ +}\x04\0\x1b[method]cylinder.resolution\x01\"\x01@\x02\x04self\x1d\x05value}\x01\0\ +\x04\0\x1f[method]cylinder.set-resolution\x01#\x04\0\x19[method]cylinder.segment\ +s\x01\"\x04\0\x1d[method]cylinder.set-segments\x01#\x01@\x01\x04self\x1d\0\x17\x04\ +\0\x18[method]cylinder.to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18[method]\ +cylinder.to-node\x01%\x04\0\x20[method]cylinder.to-physics-node\x01%\x01i\x0a\x01\ +@\x01\x04size\x03\0&\x04\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\x04self\ +(\0\x03\x04\0\x13[method]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\x01\0\x04\ +\0\x17[method]cuboid.set-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[method]cubo\ +id.to-mesh\x01+\x01@\x01\x04self(\0\x19\x04\0\x16[method]cuboid.to-node\x01,\x04\ +\0\x1e[method]cuboid.to-physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\0-\x04\0\x16\ +[static]sphere.new-ico\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01h\x11\x01@\x01\ +\x04self/\0v\x04\0\x15[method]sphere.radius\x010\x01@\x02\x04self/\x05valuev\x01\ +\0\x04\0\x19[method]sphere.set-radius\x011\x01@\x01\x04self/\0\x10\x04\0\x13[met\ +hod]sphere.kind\x012\x01@\x02\x04self/\x05value\x10\x01\0\x04\0\x17[method]spher\ +e.set-kind\x013\x01@\x01\x04self/\0\x17\x04\0\x16[method]sphere.to-mesh\x014\x01\ +@\x01\x04self/\0\x19\x04\0\x16[method]sphere.to-node\x015\x04\0\x1e[method]spher\ +e.to-physics-node\x015\x04\x01\x10unavi:shapes/api\x05\x13\x04\x01\x12unavi:shap\ +es/guest\x04\0\x0b\x0b\x01\0\x05guest\x03\0\0\0G\x09producers\x01\x0cprocessed-b\ +y\x02\x0dwit-component\x070.208.1\x10wit-bindgen-rust\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wasm/unavi-system/src/bindings.rs b/wasm/unavi-system/src/bindings.rs index 601bdc64c..266d2583e 100644 --- a/wasm/unavi-system/src/bindings.rs +++ b/wasm/unavi-system/src/bindings.rs @@ -521,46 +521,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -569,20 +563,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -666,16 +657,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -691,535 +682,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -1228,72 +1228,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -6419,8 +6388,8 @@ pub(crate) use __export_guest_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:guest:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 8054] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xfa=\x01A\x02\x01A(\x01\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 8029] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xe1=\x01A\x02\x01A(\x01\ B\x13\x01r\x04\x01rv\x01gv\x01bv\x01av\x04\0\x05color\x03\0\0\x04\0\x08material\x03\ \x01\x01i\x02\x01@\0\0\x03\x04\0\x15[constructor]material\x01\x04\x01h\x02\x01@\x01\ \x04self\x05\0y\x04\0\x13[method]material.id\x01\x06\x01@\x01\x04self\x05\0\x03\x04\ @@ -6456,149 +6425,148 @@ vec3\x02\x03\0\x02\x04quat\x01B\x15\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x0 joint\x03\0\x06\x01r\x04\x03tip\x07\x06distal\x07\x08proximal\x07\x0ametacarpal\x07\ \x04\0\x06finger\x03\0\x08\x01k\x07\x01r\x09\x04side\x05\x05thumb\x09\x05index\x09\ \x06middle\x09\x04ring\x09\x06little\x09\x04palm\x07\x05wrist\x07\x05elbow\x0a\x04\ -\0\x04hand\x03\0\x0b\x01r\x02\x06origin\x01\x0borientation\x03\x04\0\x03ray\x03\0\ -\x0d\x01r\x03\x06origin\x01\x0borientation\x03\x06radiusv\x04\0\x03tip\x03\0\x0f\ -\x01q\x03\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainput-typ\ -e\x03\0\x11\x01r\x04\x02idw\x05input\x12\x08distancev\x05ordery\x04\0\x0binput-e\ -vent\x03\0\x13\x03\x01\x11wired:input/types\x05\x06\x02\x03\0\x03\x0binput-event\ -\x01B\x0a\x02\x03\x02\x01\x07\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-handle\ -r\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\x04\x01h\ -\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\"[method]input-handler.handle-inp\ -ut\x01\x07\x03\x01\x13wired:input/handler\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\x04\ -\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\0\ -\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06\ -sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07d\ -ynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\ -\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04\ -self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05va\ -luev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0fri\ -gid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\ -\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\ -\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[met\ -hod]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\ -\x01\x13wired:physics/types\x05\x09\x02\x03\0\x01\x04mesh\x02\x03\0\x04\x0dinput\ --handler\x02\x03\0\x02\x09transform\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0ar\ -igid-body\x01BE\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\ -\0\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0d\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x0f\x02\x03\0\x06\x04node\x01B%\x02\x03\x02\x01\x10\x04\0\x04\ -node\x03\0\0\x04\0\x06screen\x03\x01\x04\0\x06module\x03\x01\x01i\x02\x01@\0\0\x04\ -\x04\0\x13[constructor]screen\x01\x05\x01h\x02\x01i\x01\x01@\x01\x04self\x06\0\x07\ -\x04\0\x13[method]screen.root\x01\x08\x01@\x01\x04self\x06\0\x7f\x04\0\x16[metho\ -d]screen.visible\x01\x09\x01@\x02\x04self\x06\x05value\x7f\x01\0\x04\0\x1a[metho\ -d]screen.set-visible\x01\x0a\x01i\x03\x01k\x0b\x01@\x01\x04self\x06\0\x0c\x04\0\x1d\ -[method]screen.central-module\x01\x0d\x01h\x03\x01k\x0e\x01@\x02\x04self\x06\x05\ -value\x0f\x01\0\x04\0![method]screen.set-central-module\x01\x10\x01@\x02\x04self\ -\x06\x05value\x0e\x01\0\x04\0\x19[method]screen.add-module\x01\x11\x04\0\x1c[met\ -hod]screen.remove-module\x01\x11\x01p\x0b\x01@\x01\x04self\x06\0\x12\x04\0\x16[m\ -ethod]screen.modules\x01\x13\x01@\x02\x04self\x06\x05deltav\x01\0\x04\0\x15[meth\ -od]screen.update\x01\x14\x01@\0\0\x0b\x04\0\x13[constructor]module\x01\x15\x01@\x01\ -\x04self\x0e\0\x07\x04\0\x13[method]module.root\x01\x16\x01@\x02\x04self\x0e\x05\ -deltav\x01\0\x04\0\x15[method]module.update\x01\x17\x03\x01\x14unavi:vscreen/scr\ -een\x05\x11\x01B\x04\x01m\x04\x05debug\x04info\x04warn\x05error\x04\0\x09log-lev\ -el\x03\0\0\x01@\x02\x05level\x01\x07messages\x01\0\x04\0\x03log\x01\x02\x03\x01\x0d\ -wired:log/api\x05\x12\x01B\x11\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\0\x01i\x01\ -\x01r\x14\x04hips\x02\x05spine\x02\x05chest\x02\x0bupper-chest\x02\x04neck\x02\x04\ -head\x02\x0dleft-shoulder\x02\x0eleft-upper-arm\x02\x0eleft-lower-arm\x02\x09lef\ -t-hand\x02\x0eright-shoulder\x02\x0fright-upper-arm\x02\x0fright-lower-arm\x02\x0a\ -right-hand\x02\x0eleft-upper-leg\x02\x0eleft-lower-leg\x02\x09left-foot\x02\x0fr\ -ight-upper-leg\x02\x0fright-lower-leg\x02\x0aright-foot\x02\x04\0\x08skeleton\x03\ -\0\x03\x04\0\x06player\x03\x01\x01h\x05\x01@\x01\x04self\x06\0\x02\x04\0\x13[met\ -hod]player.root\x01\x07\x01@\x01\x04self\x06\0\x04\x04\0\x17[method]player.skele\ -ton\x01\x08\x01i\x05\x01p\x09\x01@\0\0\x0a\x04\0\x0clist-players\x01\x0b\x01@\0\0\ -\x09\x04\0\x0clocal-player\x01\x0c\x03\x01\x10wired:player/api\x05\x13\x01B\x15\x02\ -\x03\x02\x01\x10\x04\0\x04node\x03\0\0\x04\0\x05scene\x03\x01\x01i\x02\x01@\0\0\x03\ -\x04\0\x12[constructor]scene\x01\x04\x01h\x02\x01@\x01\x04self\x05\0y\x04\0\x10[\ -method]scene.id\x01\x06\x01@\x01\x04self\x05\0s\x04\0\x12[method]scene.name\x01\x07\ -\x01@\x02\x04self\x05\x05values\x01\0\x04\0\x16[method]scene.set-name\x01\x08\x01\ -i\x01\x01p\x09\x01@\x01\x04self\x05\0\x0a\x04\0\x13[method]scene.nodes\x01\x0b\x01\ -h\x01\x01@\x02\x04self\x05\x05value\x0c\x01\0\x04\0\x16[method]scene.add-node\x01\ -\x0d\x04\0\x19[method]scene.remove-node\x01\x0d\x03\x01\x11wired:scene/scene\x05\ -\x14\x02\x03\0\x0a\x05scene\x01B5\x02\x03\x02\x01\x01\x04\0\x08material\x03\0\0\x02\ -\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x02\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\ -\x04\x02\x03\x02\x01\x15\x04\0\x05scene\x03\0\x06\x04\0\x04gltf\x03\x01\x01i\x08\ -\x01@\0\0\x09\x04\0\x11[constructor]gltf\x01\x0a\x01h\x08\x01i\x01\x01p\x0c\x01@\ -\x01\x04self\x0b\0\x0d\x04\0\x1b[method]gltf.list-materials\x01\x0e\x01h\x01\x01\ -@\x02\x04self\x0b\x05value\x0f\x01\0\x04\0\x19[method]gltf.add-material\x01\x10\x04\ -\0\x1c[method]gltf.remove-material\x01\x10\x01i\x03\x01p\x11\x01@\x01\x04self\x0b\ -\0\x12\x04\0\x18[method]gltf.list-meshes\x01\x13\x01h\x03\x01@\x02\x04self\x0b\x05\ -value\x14\x01\0\x04\0\x15[method]gltf.add-mesh\x01\x15\x04\0\x18[method]gltf.rem\ -ove-mesh\x01\x15\x01i\x05\x01p\x16\x01@\x01\x04self\x0b\0\x17\x04\0\x17[method]g\ -ltf.list-nodes\x01\x18\x01h\x05\x01@\x02\x04self\x0b\x05value\x19\x01\0\x04\0\x15\ -[method]gltf.add-node\x01\x1a\x04\0\x18[method]gltf.remove-node\x01\x1a\x01i\x07\ -\x01p\x1b\x01@\x01\x04self\x0b\0\x1c\x04\0\x18[method]gltf.list-scenes\x01\x1d\x01\ -h\x07\x01@\x02\x04self\x0b\x05value\x1e\x01\0\x04\0\x16[method]gltf.add-scene\x01\ -\x1f\x04\0\x19[method]gltf.remove-scene\x01\x1f\x01k\x1b\x01@\x01\x04self\x0b\0\x20\ -\x04\0\x19[method]gltf.active-scene\x01!\x01k\x1e\x01@\x02\x04self\x0b\x05value\"\ -\x01\0\x04\0\x1d[method]gltf.set-active-scene\x01#\x04\0\x1a[method]gltf.default\ --scene\x01!\x04\0\x1e[method]gltf.set-default-scene\x01\x1f\x03\x01\x10wired:sce\ -ne/gltf\x05\x16\x02\x03\0\x0b\x04gltf\x01Bt\x02\x03\x02\x01\x17\x04\0\x04gltf\x03\ -\0\0\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09tr\ -ansform\x03\0\x04\x04\0\x04glxf\x03\x01\x04\0\x0aasset-gltf\x03\x01\x04\0\x0aass\ -et-glxf\x03\x01\x01i\x07\x01i\x08\x01q\x02\x04gltf\x01\x09\0\x04glxf\x01\x0a\0\x04\ -\0\x05asset\x03\0\x0b\x01h\x07\x01h\x08\x01q\x02\x04gltf\x01\x0d\0\x04glxf\x01\x0e\ -\0\x04\0\x0casset-borrow\x03\0\x0f\x04\0\x09glxf-node\x03\x01\x01i\x11\x01p\x12\x01\ -q\x02\x05asset\x01\x0c\0\x05nodes\x01\x13\0\x04\0\x08children\x03\0\x14\x01h\x11\ -\x01p\x16\x01q\x02\x05asset\x01\x10\0\x05nodes\x01\x17\0\x04\0\x0fchildren-borro\ -w\x03\0\x18\x04\0\x0aglxf-scene\x03\x01\x01i\x06\x01@\0\0\x1b\x04\0\x11[construc\ -tor]glxf\x01\x1c\x01h\x06\x01p\x0c\x01@\x01\x04self\x1d\0\x1e\x04\0\x18[method]g\ -lxf.list-assets\x01\x1f\x01@\x02\x04self\x1d\x05value\x10\x01\0\x04\0\x16[method\ -]glxf.add-asset\x01\x20\x04\0\x19[method]glxf.remove-asset\x01\x20\x01@\x01\x04s\ -elf\x1d\0\x13\x04\0\x17[method]glxf.list-nodes\x01!\x01@\x02\x04self\x1d\x05valu\ -e\x16\x01\0\x04\0\x15[method]glxf.add-node\x01\"\x04\0\x18[method]glxf.remove-no\ -de\x01\"\x01i\x1a\x01p#\x01@\x01\x04self\x1d\0$\x04\0\x18[method]glxf.list-scene\ -s\x01%\x01h\x1a\x01@\x02\x04self\x1d\x05value&\x01\0\x04\0\x16[method]glxf.add-s\ -cene\x01'\x04\0\x19[method]glxf.remove-scene\x01'\x01k#\x01@\x01\x04self\x1d\0(\x04\ -\0\x19[method]glxf.active-scene\x01)\x01k&\x01@\x02\x04self\x1d\x05value*\x01\0\x04\ -\0\x1d[method]glxf.set-active-scene\x01+\x04\0\x1a[method]glxf.default-scene\x01\ -)\x04\0\x1e[method]glxf.set-default-scene\x01'\x01h\x01\x01@\x01\x08document,\0\x09\ -\x04\0\x17[constructor]asset-gltf\x01-\x01i\x01\x01@\x01\x04self\x0d\0.\x04\0\x1b\ -[method]asset-gltf.document\x01/\x01i\x03\x01p0\x01@\x01\x04self\x0d\01\x04\0\x1d\ -[method]asset-gltf.list-nodes\x012\x01h\x03\x01@\x02\x04self\x0d\x05value3\x01\0\ -\x04\0\x1b[method]asset-gltf.add-node\x014\x04\0\x1e[method]asset-gltf.remove-no\ -de\x014\x01@\x01\x08document\x1d\0\x0a\x04\0\x17[constructor]asset-glxf\x015\x01\ -@\x01\x04self\x0e\0\x1b\x04\0\x1b[method]asset-glxf.document\x016\x01@\x01\x04se\ -lf\x0e\0\x13\x04\0\x1d[method]asset-glxf.list-nodes\x017\x01@\x02\x04self\x0e\x05\ -value\x16\x01\0\x04\0\x1b[method]asset-glxf.add-node\x018\x04\0\x1e[method]asset\ --glxf.remove-node\x018\x01@\0\0\x12\x04\0\x16[constructor]glxf-node\x019\x01@\x01\ -\x04self\x16\0y\x04\0\x14[method]glxf-node.id\x01:\x01@\x01\x04self\x16\0s\x04\0\ -\x16[method]glxf-node.name\x01;\x01@\x02\x04self\x16\x05values\x01\0\x04\0\x1a[m\ -ethod]glxf-node.set-name\x01<\x01@\x01\x04self\x16\0\x05\x04\0\x1b[method]glxf-n\ -ode.transform\x01=\x01@\x02\x04self\x16\x05value\x05\x01\0\x04\0\x1f[method]glxf\ --node.set-transform\x01>\x01k\x12\x01@\x01\x04self\x16\0?\x04\0\x18[method]glxf-\ -node.parent\x01@\x01k\x15\x01@\x01\x04self\x16\0\xc1\0\x04\0\x1a[method]glxf-nod\ -e.children\x01B\x01k\x19\x01@\x02\x04self\x16\x05value\xc3\0\x01\0\x04\0\x1e[met\ -hod]glxf-node.set-children\x01D\x01@\0\0#\x04\0\x17[constructor]glxf-scene\x01E\x01\ -@\x01\x04self&\0y\x04\0\x15[method]glxf-scene.id\x01F\x01@\x01\x04self&\0s\x04\0\ -\x17[method]glxf-scene.name\x01G\x01@\x02\x04self&\x05values\x01\0\x04\0\x1b[met\ -hod]glxf-scene.set-name\x01H\x01@\x01\x04self&\0\x13\x04\0\x18[method]glxf-scene\ -.nodes\x01I\x01@\x02\x04self&\x04node\x16\x01\0\x04\0\x1b[method]glxf-scene.add-\ -node\x01J\x04\0\x1e[method]glxf-scene.remove-node\x01J\x04\0\x08get-root\x01\x1c\ -\x03\x01\x10wired:scene/glxf\x05\x18\x01B\x07\x04\0\x06script\x03\x01\x01i\0\x01\ -@\0\0\x01\x04\0\x13[constructor]script\x01\x02\x01h\0\x01@\x02\x04self\x03\x05de\ -ltav\x01\0\x04\0\x15[method]script.update\x01\x04\x04\x01\x12wired:script/types\x05\ -\x19\x04\x01\x12unavi:system/guest\x04\0\x0b\x0b\x01\0\x05guest\x03\0\0\0G\x09pr\ -oducers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-bindgen-rust\x06\ -0.25.0"; +\0\x04hand\x03\0\x0b\x01r\x02\x0borientation\x03\x06origin\x01\x04\0\x03ray\x03\0\ +\x0d\x01q\x02\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x04\0\x0ainput-data\x03\0\x0f\x01\ +q\x02\x09collision\0\0\x05hover\0\0\x04\0\x0cinput-action\x03\0\x11\x01r\x03\x02\ +idw\x06action\x12\x04data\x10\x04\0\x0binput-event\x03\0\x13\x03\x01\x11wired:in\ +put/types\x05\x06\x02\x03\0\x03\x0binput-event\x01B\x0a\x02\x03\x02\x01\x07\x04\0\ +\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\ +\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\ +\x06\x04\0\x1a[method]input-handler.next\x01\x07\x03\x01\x13wired:input/handler\x05\ +\x08\x01B\x1c\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\ +\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cu\ +boid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\ +\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0frigi\ +d-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constructor\ +]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider.den\ +sity\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.set-\ +density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[constru\ +ctor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method]rig\ +id-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\0\x1d[method]\ +rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\x12\x04\0\x1d\ +[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/types\x05\x09\x02\ +\x03\0\x01\x04mesh\x02\x03\0\x04\x0dinput-handler\x02\x03\0\x02\x09transform\x02\ +\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BE\x02\x03\x02\x01\x0a\x04\ +\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\x02\x03\x02\ +\x01\x0c\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0d\x04\0\x08collider\x03\0\ +\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x0f\x02\x03\0\ +\x06\x04node\x01B%\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\0\x04\0\x06screen\x03\ +\x01\x04\0\x06module\x03\x01\x01i\x02\x01@\0\0\x04\x04\0\x13[constructor]screen\x01\ +\x05\x01h\x02\x01i\x01\x01@\x01\x04self\x06\0\x07\x04\0\x13[method]screen.root\x01\ +\x08\x01@\x01\x04self\x06\0\x7f\x04\0\x16[method]screen.visible\x01\x09\x01@\x02\ +\x04self\x06\x05value\x7f\x01\0\x04\0\x1a[method]screen.set-visible\x01\x0a\x01i\ +\x03\x01k\x0b\x01@\x01\x04self\x06\0\x0c\x04\0\x1d[method]screen.central-module\x01\ +\x0d\x01h\x03\x01k\x0e\x01@\x02\x04self\x06\x05value\x0f\x01\0\x04\0![method]scr\ +een.set-central-module\x01\x10\x01@\x02\x04self\x06\x05value\x0e\x01\0\x04\0\x19\ +[method]screen.add-module\x01\x11\x04\0\x1c[method]screen.remove-module\x01\x11\x01\ +p\x0b\x01@\x01\x04self\x06\0\x12\x04\0\x16[method]screen.modules\x01\x13\x01@\x02\ +\x04self\x06\x05deltav\x01\0\x04\0\x15[method]screen.update\x01\x14\x01@\0\0\x0b\ +\x04\0\x13[constructor]module\x01\x15\x01@\x01\x04self\x0e\0\x07\x04\0\x13[metho\ +d]module.root\x01\x16\x01@\x02\x04self\x0e\x05deltav\x01\0\x04\0\x15[method]modu\ +le.update\x01\x17\x03\x01\x14unavi:vscreen/screen\x05\x11\x01B\x04\x01m\x04\x05d\ +ebug\x04info\x04warn\x05error\x04\0\x09log-level\x03\0\0\x01@\x02\x05level\x01\x07\ +messages\x01\0\x04\0\x03log\x01\x02\x03\x01\x0dwired:log/api\x05\x12\x01B\x11\x02\ +\x03\x02\x01\x10\x04\0\x04node\x03\0\0\x01i\x01\x01r\x14\x04hips\x02\x05spine\x02\ +\x05chest\x02\x0bupper-chest\x02\x04neck\x02\x04head\x02\x0dleft-shoulder\x02\x0e\ +left-upper-arm\x02\x0eleft-lower-arm\x02\x09left-hand\x02\x0eright-shoulder\x02\x0f\ +right-upper-arm\x02\x0fright-lower-arm\x02\x0aright-hand\x02\x0eleft-upper-leg\x02\ +\x0eleft-lower-leg\x02\x09left-foot\x02\x0fright-upper-leg\x02\x0fright-lower-le\ +g\x02\x0aright-foot\x02\x04\0\x08skeleton\x03\0\x03\x04\0\x06player\x03\x01\x01h\ +\x05\x01@\x01\x04self\x06\0\x02\x04\0\x13[method]player.root\x01\x07\x01@\x01\x04\ +self\x06\0\x04\x04\0\x17[method]player.skeleton\x01\x08\x01i\x05\x01p\x09\x01@\0\ +\0\x0a\x04\0\x0clist-players\x01\x0b\x01@\0\0\x09\x04\0\x0clocal-player\x01\x0c\x03\ +\x01\x10wired:player/api\x05\x13\x01B\x15\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\ +\0\x04\0\x05scene\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x12[constructor]scene\x01\x04\ +\x01h\x02\x01@\x01\x04self\x05\0y\x04\0\x10[method]scene.id\x01\x06\x01@\x01\x04\ +self\x05\0s\x04\0\x12[method]scene.name\x01\x07\x01@\x02\x04self\x05\x05values\x01\ +\0\x04\0\x16[method]scene.set-name\x01\x08\x01i\x01\x01p\x09\x01@\x01\x04self\x05\ +\0\x0a\x04\0\x13[method]scene.nodes\x01\x0b\x01h\x01\x01@\x02\x04self\x05\x05val\ +ue\x0c\x01\0\x04\0\x16[method]scene.add-node\x01\x0d\x04\0\x19[method]scene.remo\ +ve-node\x01\x0d\x03\x01\x11wired:scene/scene\x05\x14\x02\x03\0\x0a\x05scene\x01B\ +5\x02\x03\x02\x01\x01\x04\0\x08material\x03\0\0\x02\x03\x02\x01\x0a\x04\0\x04mes\ +h\x03\0\x02\x02\x03\x02\x01\x10\x04\0\x04node\x03\0\x04\x02\x03\x02\x01\x15\x04\0\ +\x05scene\x03\0\x06\x04\0\x04gltf\x03\x01\x01i\x08\x01@\0\0\x09\x04\0\x11[constr\ +uctor]gltf\x01\x0a\x01h\x08\x01i\x01\x01p\x0c\x01@\x01\x04self\x0b\0\x0d\x04\0\x1b\ +[method]gltf.list-materials\x01\x0e\x01h\x01\x01@\x02\x04self\x0b\x05value\x0f\x01\ +\0\x04\0\x19[method]gltf.add-material\x01\x10\x04\0\x1c[method]gltf.remove-mater\ +ial\x01\x10\x01i\x03\x01p\x11\x01@\x01\x04self\x0b\0\x12\x04\0\x18[method]gltf.l\ +ist-meshes\x01\x13\x01h\x03\x01@\x02\x04self\x0b\x05value\x14\x01\0\x04\0\x15[me\ +thod]gltf.add-mesh\x01\x15\x04\0\x18[method]gltf.remove-mesh\x01\x15\x01i\x05\x01\ +p\x16\x01@\x01\x04self\x0b\0\x17\x04\0\x17[method]gltf.list-nodes\x01\x18\x01h\x05\ +\x01@\x02\x04self\x0b\x05value\x19\x01\0\x04\0\x15[method]gltf.add-node\x01\x1a\x04\ +\0\x18[method]gltf.remove-node\x01\x1a\x01i\x07\x01p\x1b\x01@\x01\x04self\x0b\0\x1c\ +\x04\0\x18[method]gltf.list-scenes\x01\x1d\x01h\x07\x01@\x02\x04self\x0b\x05valu\ +e\x1e\x01\0\x04\0\x16[method]gltf.add-scene\x01\x1f\x04\0\x19[method]gltf.remove\ +-scene\x01\x1f\x01k\x1b\x01@\x01\x04self\x0b\0\x20\x04\0\x19[method]gltf.active-\ +scene\x01!\x01k\x1e\x01@\x02\x04self\x0b\x05value\"\x01\0\x04\0\x1d[method]gltf.\ +set-active-scene\x01#\x04\0\x1a[method]gltf.default-scene\x01!\x04\0\x1e[method]\ +gltf.set-default-scene\x01\x1f\x03\x01\x10wired:scene/gltf\x05\x16\x02\x03\0\x0b\ +\x04gltf\x01Bt\x02\x03\x02\x01\x17\x04\0\x04gltf\x03\0\0\x02\x03\x02\x01\x10\x04\ +\0\x04node\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x04\0\x04g\ +lxf\x03\x01\x04\0\x0aasset-gltf\x03\x01\x04\0\x0aasset-glxf\x03\x01\x01i\x07\x01\ +i\x08\x01q\x02\x04gltf\x01\x09\0\x04glxf\x01\x0a\0\x04\0\x05asset\x03\0\x0b\x01h\ +\x07\x01h\x08\x01q\x02\x04gltf\x01\x0d\0\x04glxf\x01\x0e\0\x04\0\x0casset-borrow\ +\x03\0\x0f\x04\0\x09glxf-node\x03\x01\x01i\x11\x01p\x12\x01q\x02\x05asset\x01\x0c\ +\0\x05nodes\x01\x13\0\x04\0\x08children\x03\0\x14\x01h\x11\x01p\x16\x01q\x02\x05\ +asset\x01\x10\0\x05nodes\x01\x17\0\x04\0\x0fchildren-borrow\x03\0\x18\x04\0\x0ag\ +lxf-scene\x03\x01\x01i\x06\x01@\0\0\x1b\x04\0\x11[constructor]glxf\x01\x1c\x01h\x06\ +\x01p\x0c\x01@\x01\x04self\x1d\0\x1e\x04\0\x18[method]glxf.list-assets\x01\x1f\x01\ +@\x02\x04self\x1d\x05value\x10\x01\0\x04\0\x16[method]glxf.add-asset\x01\x20\x04\ +\0\x19[method]glxf.remove-asset\x01\x20\x01@\x01\x04self\x1d\0\x13\x04\0\x17[met\ +hod]glxf.list-nodes\x01!\x01@\x02\x04self\x1d\x05value\x16\x01\0\x04\0\x15[metho\ +d]glxf.add-node\x01\"\x04\0\x18[method]glxf.remove-node\x01\"\x01i\x1a\x01p#\x01\ +@\x01\x04self\x1d\0$\x04\0\x18[method]glxf.list-scenes\x01%\x01h\x1a\x01@\x02\x04\ +self\x1d\x05value&\x01\0\x04\0\x16[method]glxf.add-scene\x01'\x04\0\x19[method]g\ +lxf.remove-scene\x01'\x01k#\x01@\x01\x04self\x1d\0(\x04\0\x19[method]glxf.active\ +-scene\x01)\x01k&\x01@\x02\x04self\x1d\x05value*\x01\0\x04\0\x1d[method]glxf.set\ +-active-scene\x01+\x04\0\x1a[method]glxf.default-scene\x01)\x04\0\x1e[method]glx\ +f.set-default-scene\x01'\x01h\x01\x01@\x01\x08document,\0\x09\x04\0\x17[construc\ +tor]asset-gltf\x01-\x01i\x01\x01@\x01\x04self\x0d\0.\x04\0\x1b[method]asset-gltf\ +.document\x01/\x01i\x03\x01p0\x01@\x01\x04self\x0d\01\x04\0\x1d[method]asset-glt\ +f.list-nodes\x012\x01h\x03\x01@\x02\x04self\x0d\x05value3\x01\0\x04\0\x1b[method\ +]asset-gltf.add-node\x014\x04\0\x1e[method]asset-gltf.remove-node\x014\x01@\x01\x08\ +document\x1d\0\x0a\x04\0\x17[constructor]asset-glxf\x015\x01@\x01\x04self\x0e\0\x1b\ +\x04\0\x1b[method]asset-glxf.document\x016\x01@\x01\x04self\x0e\0\x13\x04\0\x1d[\ +method]asset-glxf.list-nodes\x017\x01@\x02\x04self\x0e\x05value\x16\x01\0\x04\0\x1b\ +[method]asset-glxf.add-node\x018\x04\0\x1e[method]asset-glxf.remove-node\x018\x01\ +@\0\0\x12\x04\0\x16[constructor]glxf-node\x019\x01@\x01\x04self\x16\0y\x04\0\x14\ +[method]glxf-node.id\x01:\x01@\x01\x04self\x16\0s\x04\0\x16[method]glxf-node.nam\ +e\x01;\x01@\x02\x04self\x16\x05values\x01\0\x04\0\x1a[method]glxf-node.set-name\x01\ +<\x01@\x01\x04self\x16\0\x05\x04\0\x1b[method]glxf-node.transform\x01=\x01@\x02\x04\ +self\x16\x05value\x05\x01\0\x04\0\x1f[method]glxf-node.set-transform\x01>\x01k\x12\ +\x01@\x01\x04self\x16\0?\x04\0\x18[method]glxf-node.parent\x01@\x01k\x15\x01@\x01\ +\x04self\x16\0\xc1\0\x04\0\x1a[method]glxf-node.children\x01B\x01k\x19\x01@\x02\x04\ +self\x16\x05value\xc3\0\x01\0\x04\0\x1e[method]glxf-node.set-children\x01D\x01@\0\ +\0#\x04\0\x17[constructor]glxf-scene\x01E\x01@\x01\x04self&\0y\x04\0\x15[method]\ +glxf-scene.id\x01F\x01@\x01\x04self&\0s\x04\0\x17[method]glxf-scene.name\x01G\x01\ +@\x02\x04self&\x05values\x01\0\x04\0\x1b[method]glxf-scene.set-name\x01H\x01@\x01\ +\x04self&\0\x13\x04\0\x18[method]glxf-scene.nodes\x01I\x01@\x02\x04self&\x04node\ +\x16\x01\0\x04\0\x1b[method]glxf-scene.add-node\x01J\x04\0\x1e[method]glxf-scene\ +.remove-node\x01J\x04\0\x08get-root\x01\x1c\x03\x01\x10wired:scene/glxf\x05\x18\x01\ +B\x07\x04\0\x06script\x03\x01\x01i\0\x01@\0\0\x01\x04\0\x13[constructor]script\x01\ +\x02\x01h\0\x01@\x02\x04self\x03\x05deltav\x01\0\x04\0\x15[method]script.update\x01\ +\x04\x04\x01\x12wired:script/types\x05\x19\x04\x01\x12unavi:system/guest\x04\0\x0b\ +\x0b\x01\0\x05guest\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-compo\ +nent\x070.208.1\x10wit-bindgen-rust\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wasm/unavi-system/src/lib.rs b/wasm/unavi-system/src/lib.rs index 1caf1aeea..ca6c194e9 100644 --- a/wasm/unavi-system/src/lib.rs +++ b/wasm/unavi-system/src/lib.rs @@ -10,6 +10,7 @@ use bindings::{ #[allow(warnings)] mod bindings; mod clock; +mod wired_input_impls; mod wired_math_impls; mod wired_scene_impls; diff --git a/wasm/unavi-system/src/wired_input_impls.rs b/wasm/unavi-system/src/wired_input_impls.rs new file mode 100644 index 000000000..285d7ec99 --- /dev/null +++ b/wasm/unavi-system/src/wired_input_impls.rs @@ -0,0 +1,10 @@ +use crate::bindings::wired::input::types::InputAction; + +impl PartialEq for InputAction { + fn eq(&self, other: &Self) -> bool { + matches!( + (self, other), + (Self::Collision, Self::Collision) | (Self::Hover, Self::Hover) + ) + } +} diff --git a/wasm/unavi-ui/src/bindings.rs b/wasm/unavi-ui/src/bindings.rs index f291f15d7..30db34678 100644 --- a/wasm/unavi-ui/src/bindings.rs +++ b/wasm/unavi-ui/src/bindings.rs @@ -1590,46 +1590,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -1638,20 +1632,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -1735,16 +1726,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -1760,535 +1751,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -2297,72 +2297,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, + x: l196, + y: l197, + z: l198, }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, - }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -4395,6 +4364,39 @@ pub mod exports { pub mod unavi { #[allow(dead_code)] pub mod ui { + #[allow(dead_code, clippy::all)] + pub mod api { + #[used] + #[doc(hidden)] + #[cfg(target_arch = "wasm32")] + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; + use super::super::super::super::_rt; + #[doc(hidden)] + #[allow(non_snake_case)] + pub unsafe fn _export_update_ui_cabi(arg0: f32) { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + T::update_ui(arg0); + } + pub trait Guest { + fn update_ui(delta: f32); + } + #[doc(hidden)] + + macro_rules! __export_unavi_ui_api_cabi{ + ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { + + #[export_name = "unavi:ui/api#update-ui"] + unsafe extern "C" fn export_update_ui(arg0: f32,) { + $($path_to_types)*::_export_update_ui_cabi::<$ty>(arg0) + } + };); + } + #[doc(hidden)] + pub(crate) use __export_unavi_ui_api_cabi; + } + #[allow(dead_code, clippy::all)] pub mod button { #[used] @@ -4568,6 +4570,19 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] + pub unsafe fn _export_method_button_hovered_cabi( + arg0: *mut u8, + ) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::hovered(ButtonBorrow::lift(arg0 as u32 as usize).get()); + match result0 { + true => 1, + false => 0, + } + } + #[doc(hidden)] + #[allow(non_snake_case)] pub unsafe fn _export_method_button_pressed_cabi( arg0: *mut u8, ) -> i32 { @@ -4629,40 +4644,46 @@ pub mod exports { fn new(root: Container) -> Self; fn root(&self) -> Container; - /// Returns `true` if the button is pressed down this frame. + /// Returns `true` if the button was hovered over this frame. + fn hovered(&self) -> bool; + /// Returns `true` if the button was pressed this frame. fn pressed(&self) -> bool; } #[doc(hidden)] macro_rules! __export_unavi_ui_button_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { + ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - #[export_name = "unavi:ui/button#[constructor]button"] - unsafe extern "C" fn export_constructor_button(arg0: i32,) -> i32 { - $($path_to_types)*::_export_constructor_button_cabi::<<$ty as $($path_to_types)*::Guest>::Button>(arg0) - } - #[export_name = "unavi:ui/button#[method]button.root"] - unsafe extern "C" fn export_method_button_root(arg0: *mut u8,) -> i32 { - $($path_to_types)*::_export_method_button_root_cabi::<<$ty as $($path_to_types)*::Guest>::Button>(arg0) - } - #[export_name = "unavi:ui/button#[method]button.pressed"] - unsafe extern "C" fn export_method_button_pressed(arg0: *mut u8,) -> i32 { - $($path_to_types)*::_export_method_button_pressed_cabi::<<$ty as $($path_to_types)*::Guest>::Button>(arg0) - } + #[export_name = "unavi:ui/button#[constructor]button"] + unsafe extern "C" fn export_constructor_button(arg0: i32,) -> i32 { + $($path_to_types)*::_export_constructor_button_cabi::<<$ty as $($path_to_types)*::Guest>::Button>(arg0) + } + #[export_name = "unavi:ui/button#[method]button.root"] + unsafe extern "C" fn export_method_button_root(arg0: *mut u8,) -> i32 { + $($path_to_types)*::_export_method_button_root_cabi::<<$ty as $($path_to_types)*::Guest>::Button>(arg0) + } + #[export_name = "unavi:ui/button#[method]button.hovered"] + unsafe extern "C" fn export_method_button_hovered(arg0: *mut u8,) -> i32 { + $($path_to_types)*::_export_method_button_hovered_cabi::<<$ty as $($path_to_types)*::Guest>::Button>(arg0) + } + #[export_name = "unavi:ui/button#[method]button.pressed"] + unsafe extern "C" fn export_method_button_pressed(arg0: *mut u8,) -> i32 { + $($path_to_types)*::_export_method_button_pressed_cabi::<<$ty as $($path_to_types)*::Guest>::Button>(arg0) + } - const _: () = { - #[doc(hidden)] - #[export_name = "unavi:ui/button#[dtor]button"] - #[allow(non_snake_case)] - unsafe extern "C" fn dtor(rep: *mut u8) { - $($path_to_types)*::Button::dtor::< - <$ty as $($path_to_types)*::Guest>::Button - >(rep) - } - }; + const _: () = { + #[doc(hidden)] + #[export_name = "unavi:ui/button#[dtor]button"] + #[allow(non_snake_case)] + unsafe extern "C" fn dtor(rep: *mut u8) { + $($path_to_types)*::Button::dtor::< + <$ty as $($path_to_types)*::Guest>::Button + >(rep) + } + }; - };); - } + };); +} #[doc(hidden)] pub(crate) use __export_unavi_ui_button_cabi; } @@ -5553,12 +5574,12 @@ mod _rt { self as i32 } } - pub use alloc_crate::boxed::Box; #[cfg(target_arch = "wasm32")] pub fn run_ctors_once() { wit_bindgen_rt::run_ctors_once(); } + pub use alloc_crate::boxed::Box; extern crate alloc as alloc_crate; pub use alloc_crate::alloc; } @@ -5585,6 +5606,7 @@ mod _rt { macro_rules! __export_guest_impl { ($ty:ident) => (self::export!($ty with_types_in self);); ($ty:ident with_types_in $($path_to_types_root:tt)*) => ( + $($path_to_types_root)*::exports::unavi::ui::api::__export_unavi_ui_api_cabi!($ty with_types_in $($path_to_types_root)*::exports::unavi::ui::api); $($path_to_types_root)*::exports::unavi::ui::button::__export_unavi_ui_button_cabi!($ty with_types_in $($path_to_types_root)*::exports::unavi::ui::button); $($path_to_types_root)*::exports::unavi::ui::text::__export_unavi_ui_text_cabi!($ty with_types_in $($path_to_types_root)*::exports::unavi::ui::text); ) @@ -5595,11 +5617,11 @@ pub(crate) use __export_guest_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:guest:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 6797] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x914\x01A\x02\x01A\"\ -\x01B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\ -\0\x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01\ -r\x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 6845] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xc14\x01A\x02\x01A$\x01\ +B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\0\ +\x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01r\ +\x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ \x01@\0\0\x01\x04\0\x09fake-fn-a\x01\x08\x01@\0\0\x03\x04\0\x09fake-fn-b\x01\x09\ \x01@\0\0\x05\x04\0\x09fake-fn-c\x01\x0a\x01@\0\0\x07\x04\0\x09fake-fn-d\x01\x0b\ \x03\x01\x10wired:math/types\x05\0\x01B\x13\x01r\x04\x01rv\x01gv\x01bv\x01av\x04\ @@ -5632,121 +5654,122 @@ method]mesh.create-primitive\x01\x1a\x01@\x02\x04self\x12\x05value\x17\x01\0\x04 \0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\x06distal\x07\x08proximal\x07\x0ametac\ arpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\x01r\x09\x04side\x05\x05thumb\x09\x05\ index\x09\x06middle\x09\x04ring\x09\x06little\x09\x04palm\x07\x05wrist\x07\x05el\ -bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06origin\x01\x0borientation\x03\x04\0\x03\ -ray\x03\0\x0d\x01r\x03\x06origin\x01\x0borientation\x03\x06radiusv\x04\0\x03tip\x03\ -\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainp\ -ut-type\x03\0\x11\x01r\x04\x02idw\x05input\x12\x08distancev\x05ordery\x04\0\x0bi\ -nput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x06\x02\x03\0\x03\x0binput\ --event\x01B\x0a\x02\x03\x02\x01\x07\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-\ -handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\x04\ -\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\"[method]input-handler.handl\ -e-input\x01\x07\x03\x01\x13wired:input/handler\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\ -\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\ -\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\ -\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07\ -dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\ -\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04\ -self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05va\ -luev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0fri\ -gid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\ -\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\ -\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[met\ -hod]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\ -\x01\x13wired:physics/types\x05\x09\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput\ --handler\x02\x03\0\0\x09transform\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0arig\ -id-body\x01BE\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\ -\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0d\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x0f\x02\x03\0\0\x04vec2\x02\x03\0\x06\x04node\x01BY\x02\x03\ -\x02\x01\x10\x04\0\x04vec2\x03\0\0\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\x02\ -\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\ -\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cylinder\x03\x01\x04\0\x06cuboid\x03\x01\ -\x01r\x01\x0csubdivisions}\x04\0\x0asphere-ico\x03\0\x0b\x01r\x02\x07sectors}\x06\ -stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\ -\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\x03\x01\x01i\x08\x01@\x01\x04size\x01\ -\0\x12\x04\0\x16[constructor]rectangle\x01\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\ -\x04\0\x16[method]rectangle.size\x01\x15\x01@\x02\x04self\x14\x05value\x01\x01\0\ -\x04\0\x1a[method]rectangle.set-size\x01\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\ -\x04\0\x19[method]rectangle.to-mesh\x01\x18\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\ -\0\x19[method]rectangle.to-node\x01\x1a\x04\0![method]rectangle.to-physics-node\x01\ -\x1a\x01i\x09\x01@\x02\x06radiusv\x06heightv\0\x1b\x04\0\x15[constructor]cylinde\ -r\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\ -\x01@\x02\x04self\x1d\x05value\x7f\x01\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\ -\x01@\x01\x04self\x1d\0v\x04\0\x17[method]cylinder.height\x01\x20\x01@\x02\x04se\ -lf\x1d\x05valuev\x01\0\x04\0\x1b[method]cylinder.set-height\x01!\x04\0\x17[metho\ -d]cylinder.radius\x01\x20\x04\0\x1b[method]cylinder.set-radius\x01!\x01@\x01\x04\ -self\x1d\0}\x04\0\x1b[method]cylinder.resolution\x01\"\x01@\x02\x04self\x1d\x05v\ -alue}\x01\0\x04\0\x1f[method]cylinder.set-resolution\x01#\x04\0\x19[method]cylin\ -der.segments\x01\"\x04\0\x1d[method]cylinder.set-segments\x01#\x01@\x01\x04self\x1d\ -\0\x17\x04\0\x18[method]cylinder.to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18\ -[method]cylinder.to-node\x01%\x04\0\x20[method]cylinder.to-physics-node\x01%\x01\ -i\x0a\x01@\x01\x04size\x03\0&\x04\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\ -\x04self(\0\x03\x04\0\x13[method]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\ -\x01\0\x04\0\x17[method]cuboid.set-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[m\ -ethod]cuboid.to-mesh\x01+\x01@\x01\x04self(\0\x19\x04\0\x16[method]cuboid.to-nod\ -e\x01,\x04\0\x1e[method]cuboid.to-physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\ -\0-\x04\0\x16[static]sphere.new-ico\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01\ -h\x11\x01@\x01\x04self/\0v\x04\0\x15[method]sphere.radius\x010\x01@\x02\x04self/\ -\x05valuev\x01\0\x04\0\x19[method]sphere.set-radius\x011\x01@\x01\x04self/\0\x10\ -\x04\0\x13[method]sphere.kind\x012\x01@\x02\x04self/\x05value\x10\x01\0\x04\0\x17\ -[method]sphere.set-kind\x013\x01@\x01\x04self/\0\x17\x04\0\x16[method]sphere.to-\ -mesh\x014\x01@\x01\x04self/\0\x19\x04\0\x16[method]sphere.to-node\x015\x04\0\x1e\ -[method]sphere.to-physics-node\x015\x03\x01\x10unavi:shapes/api\x05\x12\x01B#\x02\ -\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x02\ -\x01m\x03\x06center\x03end\x05start\x04\0\x09alignment\x03\0\x04\x04\0\x09contai\ -ner\x03\x01\x01i\x06\x01@\x01\x04size\x01\0\x07\x04\0\x16[constructor]container\x01\ -\x08\x01h\x06\x01@\x01\x04self\x09\0\x07\x04\0\x15[method]container.ref\x01\x0a\x01\ -i\x03\x01@\x01\x04self\x09\0\x0b\x04\0\x16[method]container.root\x01\x0c\x04\0\x17\ -[method]container.inner\x01\x0c\x01p\x07\x01@\x01\x04self\x09\0\x0d\x04\0\x1f[me\ -thod]container.list-children\x01\x0e\x01@\x02\x04self\x09\x05child\x09\x01\0\x04\ -\0\x1b[method]container.add-child\x01\x0f\x04\0\x1e[method]container.remove-chil\ -d\x01\x0f\x01@\x01\x04self\x09\0\x01\x04\0\x16[method]container.size\x01\x10\x01\ -@\x02\x04self\x09\x05value\x01\x01\0\x04\0\x1a[method]container.set-size\x01\x11\ -\x01@\x01\x04self\x09\0\x05\x04\0\x19[method]container.align-x\x01\x12\x04\0\x19\ -[method]container.align-y\x01\x12\x04\0\x19[method]container.align-z\x01\x12\x01\ -@\x02\x04self\x09\x05value\x05\x01\0\x04\0\x1d[method]container.set-align-x\x01\x13\ -\x04\0\x1d[method]container.set-align-y\x01\x13\x04\0\x1d[method]container.set-a\ -lign-z\x01\x13\x03\x01\x16unavi:layout/container\x05\x13\x02\x03\0\x08\x09contai\ -ner\x01B\x0e\x02\x03\x02\x01\x14\x04\0\x09container\x03\0\0\x02\x03\x02\x01\x0b\x04\ -\0\x0dinput-handler\x03\0\x02\x04\0\x06button\x03\x01\x01i\x01\x01i\x04\x01@\x01\ -\x04root\x05\0\x06\x04\0\x13[constructor]button\x01\x07\x01h\x04\x01@\x01\x04sel\ -f\x08\0\x05\x04\0\x13[method]button.root\x01\x09\x01@\x01\x04self\x08\0\x7f\x04\0\ -\x16[method]button.pressed\x01\x0a\x04\x01\x0funavi:ui/button\x05\x15\x01B(\x02\x03\ -\x02\x01\x14\x04\0\x09container\x03\0\0\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x02\ -\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x04\x04\0\x04text\x03\x01\x04\0\x08text\ --box\x03\x01\x01i\x06\x01@\x01\x04texts\0\x08\x04\0\x11[constructor]text\x01\x09\ -\x01h\x06\x01@\x01\x04self\x0a\0\x08\x04\0\x10[method]text.ref\x01\x0b\x01p}\x01\ -k\x0c\x01@\x02\x04self\x0a\x05value\x0d\x01\0\x04\0\x15[method]text.set-font\x01\ -\x0e\x01@\x01\x04self\x0a\0s\x04\0\x11[method]text.text\x01\x0f\x01@\x02\x04self\ -\x0a\x05values\x01\0\x04\0\x15[method]text.set-text\x01\x10\x01@\x01\x04self\x0a\ -\0v\x04\0\x16[method]text.font-size\x01\x11\x01@\x02\x04self\x0a\x05valuev\x01\0\ -\x04\0\x1a[method]text.set-font-size\x01\x12\x04\0\x16[method]text.thickness\x01\ -\x11\x04\0\x1a[method]text.set-thickness\x01\x12\x01i\x03\x01@\x01\x04self\x0a\0\ -\x13\x04\0\x11[method]text.mesh\x01\x14\x01i\x01\x01i\x07\x01@\x01\x04root\x15\0\ -\x16\x04\0\x15[constructor]text-box\x01\x17\x01h\x07\x01@\x01\x04self\x18\0\x15\x04\ -\0\x15[method]text-box.root\x01\x19\x01@\x01\x04self\x18\0\x08\x04\0\x15[method]\ -text-box.text\x01\x1a\x04\x01\x0dunavi:ui/text\x05\x16\x04\x01\x0eunavi:ui/guest\ -\x04\0\x0b\x0b\x01\0\x05guest\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0d\ -wit-component\x070.208.1\x10wit-bindgen-rust\x060.25.0"; +bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0borientation\x03\x06origin\x01\x04\0\x03\ +ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x04\0\x0ainput-data\x03\ +\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\0\x04\0\x0cinput-action\x03\0\x11\x01\ +r\x03\x02idw\x06action\x12\x04data\x10\x04\0\x0binput-event\x03\0\x13\x03\x01\x11\ +wired:input/types\x05\x06\x02\x03\0\x03\x0binput-event\x01B\x0a\x02\x03\x02\x01\x07\ +\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\ +\x04\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\ +\0\x06\x04\0\x1a[method]input-handler.next\x01\x07\x03\x01\x13wired:input/handle\ +r\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\ +\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06\ +cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\ +\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0f\ +rigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constru\ +ctor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider\ +.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.\ +set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[con\ +structor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method\ +]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\0\x1d[met\ +hod]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\x12\x04\ +\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/types\x05\x09\ +\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput-handler\x02\x03\0\0\x09transform\x02\ +\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BE\x02\x03\x02\x01\x0a\x04\ +\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\x02\x03\x02\ +\x01\x0c\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0d\x04\0\x08collider\x03\0\ +\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x0f\x02\x03\0\ +\0\x04vec2\x02\x03\0\x06\x04node\x01BY\x02\x03\x02\x01\x10\x04\0\x04vec2\x03\0\0\ +\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\ +\0\x04\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x06\x04\0\x09rectangle\x03\x01\x04\ +\0\x08cylinder\x03\x01\x04\0\x06cuboid\x03\x01\x01r\x01\x0csubdivisions}\x04\0\x0a\ +sphere-ico\x03\0\x0b\x01r\x02\x07sectors}\x06stacks}\x04\0\x09sphere-uv\x03\0\x0d\ +\x01q\x02\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\0\x0bsphere-kind\x03\0\x0f\x04\0\x06\ +sphere\x03\x01\x01i\x08\x01@\x01\x04size\x01\0\x12\x04\0\x16[constructor]rectang\ +le\x01\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\x04\0\x16[method]rectangle.size\x01\ +\x15\x01@\x02\x04self\x14\x05value\x01\x01\0\x04\0\x1a[method]rectangle.set-size\ +\x01\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\x04\0\x19[method]rectangle.to-mesh\x01\ +\x18\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\0\x19[method]rectangle.to-node\x01\x1a\ +\x04\0![method]rectangle.to-physics-node\x01\x1a\x01i\x09\x01@\x02\x06radiusv\x06\ +heightv\0\x1b\x04\0\x15[constructor]cylinder\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\ +\0\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\x01@\x02\x04self\x1d\x05value\x7f\x01\ +\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\x01@\x01\x04self\x1d\0v\x04\0\x17[m\ +ethod]cylinder.height\x01\x20\x01@\x02\x04self\x1d\x05valuev\x01\0\x04\0\x1b[met\ +hod]cylinder.set-height\x01!\x04\0\x17[method]cylinder.radius\x01\x20\x04\0\x1b[\ +method]cylinder.set-radius\x01!\x01@\x01\x04self\x1d\0}\x04\0\x1b[method]cylinde\ +r.resolution\x01\"\x01@\x02\x04self\x1d\x05value}\x01\0\x04\0\x1f[method]cylinde\ +r.set-resolution\x01#\x04\0\x19[method]cylinder.segments\x01\"\x04\0\x1d[method]\ +cylinder.set-segments\x01#\x01@\x01\x04self\x1d\0\x17\x04\0\x18[method]cylinder.\ +to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18[method]cylinder.to-node\x01%\x04\ +\0\x20[method]cylinder.to-physics-node\x01%\x01i\x0a\x01@\x01\x04size\x03\0&\x04\ +\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\x04self(\0\x03\x04\0\x13[method\ +]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\x01\0\x04\0\x17[method]cuboid.s\ +et-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[method]cuboid.to-mesh\x01+\x01@\x01\ +\x04self(\0\x19\x04\0\x16[method]cuboid.to-node\x01,\x04\0\x1e[method]cuboid.to-\ +physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\0-\x04\0\x16[static]sphere.new-ic\ +o\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01h\x11\x01@\x01\x04self/\0v\x04\0\x15\ +[method]sphere.radius\x010\x01@\x02\x04self/\x05valuev\x01\0\x04\0\x19[method]sp\ +here.set-radius\x011\x01@\x01\x04self/\0\x10\x04\0\x13[method]sphere.kind\x012\x01\ +@\x02\x04self/\x05value\x10\x01\0\x04\0\x17[method]sphere.set-kind\x013\x01@\x01\ +\x04self/\0\x17\x04\0\x16[method]sphere.to-mesh\x014\x01@\x01\x04self/\0\x19\x04\ +\0\x16[method]sphere.to-node\x015\x04\0\x1e[method]sphere.to-physics-node\x015\x03\ +\x01\x10unavi:shapes/api\x05\x12\x01B#\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\ +\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x02\x01m\x03\x06center\x03end\x05start\x04\ +\0\x09alignment\x03\0\x04\x04\0\x09container\x03\x01\x01i\x06\x01@\x01\x04size\x01\ +\0\x07\x04\0\x16[constructor]container\x01\x08\x01h\x06\x01@\x01\x04self\x09\0\x07\ +\x04\0\x15[method]container.ref\x01\x0a\x01i\x03\x01@\x01\x04self\x09\0\x0b\x04\0\ +\x16[method]container.root\x01\x0c\x04\0\x17[method]container.inner\x01\x0c\x01p\ +\x07\x01@\x01\x04self\x09\0\x0d\x04\0\x1f[method]container.list-children\x01\x0e\ +\x01@\x02\x04self\x09\x05child\x09\x01\0\x04\0\x1b[method]container.add-child\x01\ +\x0f\x04\0\x1e[method]container.remove-child\x01\x0f\x01@\x01\x04self\x09\0\x01\x04\ +\0\x16[method]container.size\x01\x10\x01@\x02\x04self\x09\x05value\x01\x01\0\x04\ +\0\x1a[method]container.set-size\x01\x11\x01@\x01\x04self\x09\0\x05\x04\0\x19[me\ +thod]container.align-x\x01\x12\x04\0\x19[method]container.align-y\x01\x12\x04\0\x19\ +[method]container.align-z\x01\x12\x01@\x02\x04self\x09\x05value\x05\x01\0\x04\0\x1d\ +[method]container.set-align-x\x01\x13\x04\0\x1d[method]container.set-align-y\x01\ +\x13\x04\0\x1d[method]container.set-align-z\x01\x13\x03\x01\x16unavi:layout/cont\ +ainer\x05\x13\x01B\x02\x01@\x01\x05deltav\x01\0\x04\0\x09update-ui\x01\0\x04\x01\ +\x0cunavi:ui/api\x05\x14\x02\x03\0\x08\x09container\x01B\x0f\x02\x03\x02\x01\x15\ +\x04\0\x09container\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\ +\x04\0\x06button\x03\x01\x01i\x01\x01i\x04\x01@\x01\x04root\x05\0\x06\x04\0\x13[\ +constructor]button\x01\x07\x01h\x04\x01@\x01\x04self\x08\0\x05\x04\0\x13[method]\ +button.root\x01\x09\x01@\x01\x04self\x08\0\x7f\x04\0\x16[method]button.hovered\x01\ +\x0a\x04\0\x16[method]button.pressed\x01\x0a\x04\x01\x0funavi:ui/button\x05\x16\x01\ +B(\x02\x03\x02\x01\x15\x04\0\x09container\x03\0\0\x02\x03\x02\x01\x0a\x04\0\x04m\ +esh\x03\0\x02\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x04\x04\0\x04text\x03\x01\x04\ +\0\x08text-box\x03\x01\x01i\x06\x01@\x01\x04texts\0\x08\x04\0\x11[constructor]te\ +xt\x01\x09\x01h\x06\x01@\x01\x04self\x0a\0\x08\x04\0\x10[method]text.ref\x01\x0b\ +\x01p}\x01k\x0c\x01@\x02\x04self\x0a\x05value\x0d\x01\0\x04\0\x15[method]text.se\ +t-font\x01\x0e\x01@\x01\x04self\x0a\0s\x04\0\x11[method]text.text\x01\x0f\x01@\x02\ +\x04self\x0a\x05values\x01\0\x04\0\x15[method]text.set-text\x01\x10\x01@\x01\x04\ +self\x0a\0v\x04\0\x16[method]text.font-size\x01\x11\x01@\x02\x04self\x0a\x05valu\ +ev\x01\0\x04\0\x1a[method]text.set-font-size\x01\x12\x04\0\x16[method]text.thick\ +ness\x01\x11\x04\0\x1a[method]text.set-thickness\x01\x12\x01i\x03\x01@\x01\x04se\ +lf\x0a\0\x13\x04\0\x11[method]text.mesh\x01\x14\x01i\x01\x01i\x07\x01@\x01\x04ro\ +ot\x15\0\x16\x04\0\x15[constructor]text-box\x01\x17\x01h\x07\x01@\x01\x04self\x18\ +\0\x15\x04\0\x15[method]text-box.root\x01\x19\x01@\x01\x04self\x18\0\x08\x04\0\x15\ +[method]text-box.text\x01\x1a\x04\x01\x0dunavi:ui/text\x05\x17\x04\x01\x0eunavi:\ +ui/guest\x04\0\x0b\x0b\x01\0\x05guest\x03\0\0\0G\x09producers\x01\x0cprocessed-b\ +y\x02\x0dwit-component\x070.208.1\x10wit-bindgen-rust\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wasm/unavi-ui/src/button.rs b/wasm/unavi-ui/src/button.rs index 483b27350..28938a54f 100644 --- a/wasm/unavi-ui/src/button.rs +++ b/wasm/unavi-ui/src/button.rs @@ -1,19 +1,66 @@ +use std::{cell::Cell, rc::Rc, sync::atomic::Ordering}; + use crate::{ bindings::{ exports::unavi::ui::button::{Guest, GuestButton}, unavi::{layout::container::Container, shapes::api::Cuboid}, - wired::input::handler::InputHandler, + wired::input::{handler::InputHandler, types::InputAction}, }, - GuestImpl, + GuestImpl, Updatable, ELEMENTS, ELEMENT_ID, }; impl Guest for GuestImpl { type Button = Button; } -pub struct Button { +pub struct Button(Rc); + +impl Drop for Button { + fn drop(&mut self) { + let mut to_remove = Vec::default(); + + unsafe { + for (i, item) in ELEMENTS.borrow().iter().enumerate() { + if item.id() == self.0.id { + to_remove.push(i); + } + } + } + + to_remove.sort(); + + for i in to_remove { + unsafe { + ELEMENTS.borrow_mut().remove(i); + } + } + } +} + +pub struct ButtonData { + id: usize, input: InputHandler, root: Container, + hovered: Cell, + pressed: Cell, +} + +impl Updatable for ButtonData { + fn id(&self) -> usize { + self.id + } + + fn update(&self, _delta: f32) { + self.hovered.set(false); + self.pressed.set(false); + + while let Some(event) = self.input.next() { + match event.action { + InputAction::Hover => self.hovered.set(true), + InputAction::Collision => self.pressed.set(true), + } + } + } } impl GuestButton for Button { @@ -26,14 +73,29 @@ impl GuestButton for Button { root.inner().add_child(&node); - Self { input, root } + let data = Rc::new(ButtonData { + id: ELEMENT_ID.fetch_add(1, Ordering::Relaxed), + input, + root, + hovered: Cell::default(), + pressed: Cell::default(), + }); + + unsafe { + ELEMENTS.borrow_mut().push(data.clone()); + } + + Self(data) } fn root(&self) -> Container { - self.root.ref_() + self.0.root.ref_() } + fn hovered(&self) -> bool { + self.0.hovered.get() + } fn pressed(&self) -> bool { - self.input.handle_input().is_some() + self.0.pressed.get() } } diff --git a/wasm/unavi-ui/src/lib.rs b/wasm/unavi-ui/src/lib.rs index 691792640..6797f9336 100644 --- a/wasm/unavi-ui/src/lib.rs +++ b/wasm/unavi-ui/src/lib.rs @@ -1,9 +1,37 @@ +use std::{ + cell::{LazyCell, RefCell}, + rc::Rc, + sync::atomic::AtomicUsize, +}; + +use bindings::exports::unavi::ui::api::Guest; + #[allow(warnings)] mod bindings; mod button; mod text; +mod wired_input_impls; + +static ELEMENT_ID: AtomicUsize = AtomicUsize::new(0); +static mut ELEMENTS: LazyCell>>> = LazyCell::new(RefCell::default); + +trait Updatable { + fn id(&self) -> usize; + fn update(&self, delta: f32); +} struct GuestImpl; +impl Guest for GuestImpl { + fn update_ui(delta: f32) { + // WASM is single-threaded, mutable statics are fine. + unsafe { + for item in ELEMENTS.borrow().iter() { + item.update(delta); + } + } + } +} + bindings::export!(GuestImpl with_types_in bindings); diff --git a/wasm/unavi-ui/src/wired_input_impls.rs b/wasm/unavi-ui/src/wired_input_impls.rs new file mode 120000 index 000000000..d4e4c5633 --- /dev/null +++ b/wasm/unavi-ui/src/wired_input_impls.rs @@ -0,0 +1 @@ +../../unavi-system/src/wired_input_impls.rs \ No newline at end of file diff --git a/wasm/unavi-ui/wit/world.wit b/wasm/unavi-ui/wit/world.wit index 8fc174c24..d21a0f95f 100644 --- a/wasm/unavi-ui/wit/world.wit +++ b/wasm/unavi-ui/wit/world.wit @@ -3,15 +3,21 @@ package unavi:ui; world guest { import unavi:shapes/api; + export api; export button; export text; } world prelude { + import api; import button; import text; } +interface api { + update-ui: func(delta: f32); +} + interface button { use unavi:layout/container.{container}; use wired:input/handler.{input-handler}; @@ -23,7 +29,10 @@ interface button { root: func() -> container; - // Returns `true` if the button is pressed down this frame. + // Returns `true` if the button was hovered over this frame. + hovered: func() -> bool; + + // Returns `true` if the button was pressed this frame. pressed: func() -> bool; } } diff --git a/wasm/unavi-vscreen/src/bindings.rs b/wasm/unavi-vscreen/src/bindings.rs index 0e35792e0..05bd6a153 100644 --- a/wasm/unavi-vscreen/src/bindings.rs +++ b/wasm/unavi-vscreen/src/bindings.rs @@ -1150,46 +1150,40 @@ pub mod wired { #[repr(C)] #[derive(Clone, Copy)] pub struct Ray { - pub origin: Vec3, pub orientation: Quat, + pub origin: Vec3, } impl ::core::fmt::Debug for Ray { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") - .field("origin", &self.origin) .field("orientation", &self.orientation) + .field("origin", &self.origin) .finish() } } - /// A single point of interaction, such as the tip of a stylus. - #[repr(C)] #[derive(Clone, Copy)] - pub struct Tip { - pub origin: Vec3, - pub orientation: Quat, - pub radius: f32, + pub enum InputData { + Hand(Hand), + Ray(Ray), } - impl ::core::fmt::Debug for Tip { + impl ::core::fmt::Debug for InputData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tip") - .field("origin", &self.origin) - .field("orientation", &self.orientation) - .field("radius", &self.radius) - .finish() + match self { + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), + } } } #[derive(Clone, Copy)] - pub enum InputType { - Hand(Hand), - Ray(Ray), - Tip(Tip), + pub enum InputAction { + Collision, + Hover, } - impl ::core::fmt::Debug for InputType { + impl ::core::fmt::Debug for InputAction { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputType::Hand(e) => f.debug_tuple("InputType::Hand").field(e).finish(), - InputType::Ray(e) => f.debug_tuple("InputType::Ray").field(e).finish(), - InputType::Tip(e) => f.debug_tuple("InputType::Tip").field(e).finish(), + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -1198,20 +1192,17 @@ pub mod wired { pub struct InputEvent { /// Unique id for the event. pub id: u64, + /// The action that created the event. + pub action: InputAction, /// Spatial input data. - pub input: InputType, - /// Distance from the input method to the handler. - pub distance: f32, - /// How many handlers received the event before this one. - pub order: u32, + pub data: InputData, } impl ::core::fmt::Debug for InputEvent { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) - .field("input", &self.input) - .field("distance", &self.distance) - .field("order", &self.order) + .field("action", &self.action) + .field("data", &self.data) .finish() } } @@ -1295,16 +1286,16 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] /// Handle the next recieved input event. /// Events only last for one tick. - pub fn handle_input(&self) -> Option { + pub fn next(&self) -> Option { unsafe { #[repr(align(8))] - struct RetArea([::core::mem::MaybeUninit; 776]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 776]); + struct RetArea([::core::mem::MaybeUninit; 768]); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] extern "C" { - #[link_name = "[method]input-handler.handle-input"] + #[link_name = "[method]input-handler.next"] fn wit_import(_: i32, _: *mut u8); } @@ -1320,535 +1311,544 @@ pub mod wired { let e = { let l2 = *ptr0.add(8).cast::(); let l3 = i32::from(*ptr0.add(16).cast::()); - use super::super::super::wired::input::types::InputType as V205; - let v205 = match l3 { + use super::super::super::wired::input::types::InputAction as V4; + let v4 = match l3 { + 0 => V4::Collision, + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + V4::Hover + } + }; + let l5 = i32::from(*ptr0.add(20).cast::()); + use super::super::super::wired::input::types::InputData as V199; + let v199 = match l5 { 0 => { - let e205 = { - let l4 = i32::from(*ptr0.add(20).cast::()); - let l5 = *ptr0.add(24).cast::(); - let l6 = *ptr0.add(28).cast::(); - let l7 = *ptr0.add(32).cast::(); - let l8 = *ptr0.add(36).cast::(); - let l9 = *ptr0.add(40).cast::(); - let l10 = *ptr0.add(44).cast::(); - let l11 = *ptr0.add(48).cast::(); - let l12 = *ptr0.add(52).cast::(); - let l13 = *ptr0.add(56).cast::(); - let l14 = *ptr0.add(60).cast::(); - let l15 = *ptr0.add(64).cast::(); - let l16 = *ptr0.add(68).cast::(); - let l17 = *ptr0.add(72).cast::(); - let l18 = *ptr0.add(76).cast::(); - let l19 = *ptr0.add(80).cast::(); - let l20 = *ptr0.add(84).cast::(); - let l21 = *ptr0.add(88).cast::(); - let l22 = *ptr0.add(92).cast::(); - let l23 = *ptr0.add(96).cast::(); - let l24 = *ptr0.add(100).cast::(); - let l25 = *ptr0.add(104).cast::(); - let l26 = *ptr0.add(108).cast::(); - let l27 = *ptr0.add(112).cast::(); - let l28 = *ptr0.add(116).cast::(); - let l29 = *ptr0.add(120).cast::(); - let l30 = *ptr0.add(124).cast::(); - let l31 = *ptr0.add(128).cast::(); - let l32 = *ptr0.add(132).cast::(); - let l33 = *ptr0.add(136).cast::(); - let l34 = *ptr0.add(140).cast::(); - let l35 = *ptr0.add(144).cast::(); - let l36 = *ptr0.add(148).cast::(); - let l37 = *ptr0.add(152).cast::(); - let l38 = *ptr0.add(156).cast::(); - let l39 = *ptr0.add(160).cast::(); - let l40 = *ptr0.add(164).cast::(); - let l41 = *ptr0.add(168).cast::(); - let l42 = *ptr0.add(172).cast::(); - let l43 = *ptr0.add(176).cast::(); - let l44 = *ptr0.add(180).cast::(); - let l45 = *ptr0.add(184).cast::(); - let l46 = *ptr0.add(188).cast::(); - let l47 = *ptr0.add(192).cast::(); - let l48 = *ptr0.add(196).cast::(); - let l49 = *ptr0.add(200).cast::(); - let l50 = *ptr0.add(204).cast::(); - let l51 = *ptr0.add(208).cast::(); - let l52 = *ptr0.add(212).cast::(); - let l53 = *ptr0.add(216).cast::(); - let l54 = *ptr0.add(220).cast::(); - let l55 = *ptr0.add(224).cast::(); - let l56 = *ptr0.add(228).cast::(); - let l57 = *ptr0.add(232).cast::(); - let l58 = *ptr0.add(236).cast::(); - let l59 = *ptr0.add(240).cast::(); - let l60 = *ptr0.add(244).cast::(); - let l61 = *ptr0.add(248).cast::(); - let l62 = *ptr0.add(252).cast::(); - let l63 = *ptr0.add(256).cast::(); - let l64 = *ptr0.add(260).cast::(); - let l65 = *ptr0.add(264).cast::(); - let l66 = *ptr0.add(268).cast::(); - let l67 = *ptr0.add(272).cast::(); - let l68 = *ptr0.add(276).cast::(); - let l69 = *ptr0.add(280).cast::(); - let l70 = *ptr0.add(284).cast::(); - let l71 = *ptr0.add(288).cast::(); - let l72 = *ptr0.add(292).cast::(); - let l73 = *ptr0.add(296).cast::(); - let l74 = *ptr0.add(300).cast::(); - let l75 = *ptr0.add(304).cast::(); - let l76 = *ptr0.add(308).cast::(); - let l77 = *ptr0.add(312).cast::(); - let l78 = *ptr0.add(316).cast::(); - let l79 = *ptr0.add(320).cast::(); - let l80 = *ptr0.add(324).cast::(); - let l81 = *ptr0.add(328).cast::(); - let l82 = *ptr0.add(332).cast::(); - let l83 = *ptr0.add(336).cast::(); - let l84 = *ptr0.add(340).cast::(); - let l85 = *ptr0.add(344).cast::(); - let l86 = *ptr0.add(348).cast::(); - let l87 = *ptr0.add(352).cast::(); - let l88 = *ptr0.add(356).cast::(); - let l89 = *ptr0.add(360).cast::(); - let l90 = *ptr0.add(364).cast::(); - let l91 = *ptr0.add(368).cast::(); - let l92 = *ptr0.add(372).cast::(); - let l93 = *ptr0.add(376).cast::(); - let l94 = *ptr0.add(380).cast::(); - let l95 = *ptr0.add(384).cast::(); - let l96 = *ptr0.add(388).cast::(); - let l97 = *ptr0.add(392).cast::(); - let l98 = *ptr0.add(396).cast::(); - let l99 = *ptr0.add(400).cast::(); - let l100 = *ptr0.add(404).cast::(); - let l101 = *ptr0.add(408).cast::(); - let l102 = *ptr0.add(412).cast::(); - let l103 = *ptr0.add(416).cast::(); - let l104 = *ptr0.add(420).cast::(); - let l105 = *ptr0.add(424).cast::(); - let l106 = *ptr0.add(428).cast::(); - let l107 = *ptr0.add(432).cast::(); - let l108 = *ptr0.add(436).cast::(); - let l109 = *ptr0.add(440).cast::(); - let l110 = *ptr0.add(444).cast::(); - let l111 = *ptr0.add(448).cast::(); - let l112 = *ptr0.add(452).cast::(); - let l113 = *ptr0.add(456).cast::(); - let l114 = *ptr0.add(460).cast::(); - let l115 = *ptr0.add(464).cast::(); - let l116 = *ptr0.add(468).cast::(); - let l117 = *ptr0.add(472).cast::(); - let l118 = *ptr0.add(476).cast::(); - let l119 = *ptr0.add(480).cast::(); - let l120 = *ptr0.add(484).cast::(); - let l121 = *ptr0.add(488).cast::(); - let l122 = *ptr0.add(492).cast::(); - let l123 = *ptr0.add(496).cast::(); - let l124 = *ptr0.add(500).cast::(); - let l125 = *ptr0.add(504).cast::(); - let l126 = *ptr0.add(508).cast::(); - let l127 = *ptr0.add(512).cast::(); - let l128 = *ptr0.add(516).cast::(); - let l129 = *ptr0.add(520).cast::(); - let l130 = *ptr0.add(524).cast::(); - let l131 = *ptr0.add(528).cast::(); - let l132 = *ptr0.add(532).cast::(); - let l133 = *ptr0.add(536).cast::(); - let l134 = *ptr0.add(540).cast::(); - let l135 = *ptr0.add(544).cast::(); - let l136 = *ptr0.add(548).cast::(); - let l137 = *ptr0.add(552).cast::(); - let l138 = *ptr0.add(556).cast::(); - let l139 = *ptr0.add(560).cast::(); - let l140 = *ptr0.add(564).cast::(); - let l141 = *ptr0.add(568).cast::(); - let l142 = *ptr0.add(572).cast::(); - let l143 = *ptr0.add(576).cast::(); - let l144 = *ptr0.add(580).cast::(); - let l145 = *ptr0.add(584).cast::(); - let l146 = *ptr0.add(588).cast::(); - let l147 = *ptr0.add(592).cast::(); - let l148 = *ptr0.add(596).cast::(); - let l149 = *ptr0.add(600).cast::(); - let l150 = *ptr0.add(604).cast::(); - let l151 = *ptr0.add(608).cast::(); - let l152 = *ptr0.add(612).cast::(); - let l153 = *ptr0.add(616).cast::(); - let l154 = *ptr0.add(620).cast::(); - let l155 = *ptr0.add(624).cast::(); - let l156 = *ptr0.add(628).cast::(); - let l157 = *ptr0.add(632).cast::(); - let l158 = *ptr0.add(636).cast::(); - let l159 = *ptr0.add(640).cast::(); - let l160 = *ptr0.add(644).cast::(); - let l161 = *ptr0.add(648).cast::(); - let l162 = *ptr0.add(652).cast::(); - let l163 = *ptr0.add(656).cast::(); - let l164 = *ptr0.add(660).cast::(); - let l165 = *ptr0.add(664).cast::(); - let l166 = *ptr0.add(668).cast::(); - let l167 = *ptr0.add(672).cast::(); - let l168 = *ptr0.add(676).cast::(); - let l169 = *ptr0.add(680).cast::(); - let l170 = *ptr0.add(684).cast::(); - let l171 = *ptr0.add(688).cast::(); - let l172 = *ptr0.add(692).cast::(); - let l173 = *ptr0.add(696).cast::(); - let l174 = *ptr0.add(700).cast::(); - let l175 = *ptr0.add(704).cast::(); - let l176 = *ptr0.add(708).cast::(); - let l177 = *ptr0.add(712).cast::(); - let l178 = *ptr0.add(716).cast::(); - let l179 = *ptr0.add(720).cast::(); - let l180 = *ptr0.add(724).cast::(); - let l181 = i32::from(*ptr0.add(728).cast::()); + let e199 = { + let l6 = i32::from(*ptr0.add(24).cast::()); + let l7 = *ptr0.add(28).cast::(); + let l8 = *ptr0.add(32).cast::(); + let l9 = *ptr0.add(36).cast::(); + let l10 = *ptr0.add(40).cast::(); + let l11 = *ptr0.add(44).cast::(); + let l12 = *ptr0.add(48).cast::(); + let l13 = *ptr0.add(52).cast::(); + let l14 = *ptr0.add(56).cast::(); + let l15 = *ptr0.add(60).cast::(); + let l16 = *ptr0.add(64).cast::(); + let l17 = *ptr0.add(68).cast::(); + let l18 = *ptr0.add(72).cast::(); + let l19 = *ptr0.add(76).cast::(); + let l20 = *ptr0.add(80).cast::(); + let l21 = *ptr0.add(84).cast::(); + let l22 = *ptr0.add(88).cast::(); + let l23 = *ptr0.add(92).cast::(); + let l24 = *ptr0.add(96).cast::(); + let l25 = *ptr0.add(100).cast::(); + let l26 = *ptr0.add(104).cast::(); + let l27 = *ptr0.add(108).cast::(); + let l28 = *ptr0.add(112).cast::(); + let l29 = *ptr0.add(116).cast::(); + let l30 = *ptr0.add(120).cast::(); + let l31 = *ptr0.add(124).cast::(); + let l32 = *ptr0.add(128).cast::(); + let l33 = *ptr0.add(132).cast::(); + let l34 = *ptr0.add(136).cast::(); + let l35 = *ptr0.add(140).cast::(); + let l36 = *ptr0.add(144).cast::(); + let l37 = *ptr0.add(148).cast::(); + let l38 = *ptr0.add(152).cast::(); + let l39 = *ptr0.add(156).cast::(); + let l40 = *ptr0.add(160).cast::(); + let l41 = *ptr0.add(164).cast::(); + let l42 = *ptr0.add(168).cast::(); + let l43 = *ptr0.add(172).cast::(); + let l44 = *ptr0.add(176).cast::(); + let l45 = *ptr0.add(180).cast::(); + let l46 = *ptr0.add(184).cast::(); + let l47 = *ptr0.add(188).cast::(); + let l48 = *ptr0.add(192).cast::(); + let l49 = *ptr0.add(196).cast::(); + let l50 = *ptr0.add(200).cast::(); + let l51 = *ptr0.add(204).cast::(); + let l52 = *ptr0.add(208).cast::(); + let l53 = *ptr0.add(212).cast::(); + let l54 = *ptr0.add(216).cast::(); + let l55 = *ptr0.add(220).cast::(); + let l56 = *ptr0.add(224).cast::(); + let l57 = *ptr0.add(228).cast::(); + let l58 = *ptr0.add(232).cast::(); + let l59 = *ptr0.add(236).cast::(); + let l60 = *ptr0.add(240).cast::(); + let l61 = *ptr0.add(244).cast::(); + let l62 = *ptr0.add(248).cast::(); + let l63 = *ptr0.add(252).cast::(); + let l64 = *ptr0.add(256).cast::(); + let l65 = *ptr0.add(260).cast::(); + let l66 = *ptr0.add(264).cast::(); + let l67 = *ptr0.add(268).cast::(); + let l68 = *ptr0.add(272).cast::(); + let l69 = *ptr0.add(276).cast::(); + let l70 = *ptr0.add(280).cast::(); + let l71 = *ptr0.add(284).cast::(); + let l72 = *ptr0.add(288).cast::(); + let l73 = *ptr0.add(292).cast::(); + let l74 = *ptr0.add(296).cast::(); + let l75 = *ptr0.add(300).cast::(); + let l76 = *ptr0.add(304).cast::(); + let l77 = *ptr0.add(308).cast::(); + let l78 = *ptr0.add(312).cast::(); + let l79 = *ptr0.add(316).cast::(); + let l80 = *ptr0.add(320).cast::(); + let l81 = *ptr0.add(324).cast::(); + let l82 = *ptr0.add(328).cast::(); + let l83 = *ptr0.add(332).cast::(); + let l84 = *ptr0.add(336).cast::(); + let l85 = *ptr0.add(340).cast::(); + let l86 = *ptr0.add(344).cast::(); + let l87 = *ptr0.add(348).cast::(); + let l88 = *ptr0.add(352).cast::(); + let l89 = *ptr0.add(356).cast::(); + let l90 = *ptr0.add(360).cast::(); + let l91 = *ptr0.add(364).cast::(); + let l92 = *ptr0.add(368).cast::(); + let l93 = *ptr0.add(372).cast::(); + let l94 = *ptr0.add(376).cast::(); + let l95 = *ptr0.add(380).cast::(); + let l96 = *ptr0.add(384).cast::(); + let l97 = *ptr0.add(388).cast::(); + let l98 = *ptr0.add(392).cast::(); + let l99 = *ptr0.add(396).cast::(); + let l100 = *ptr0.add(400).cast::(); + let l101 = *ptr0.add(404).cast::(); + let l102 = *ptr0.add(408).cast::(); + let l103 = *ptr0.add(412).cast::(); + let l104 = *ptr0.add(416).cast::(); + let l105 = *ptr0.add(420).cast::(); + let l106 = *ptr0.add(424).cast::(); + let l107 = *ptr0.add(428).cast::(); + let l108 = *ptr0.add(432).cast::(); + let l109 = *ptr0.add(436).cast::(); + let l110 = *ptr0.add(440).cast::(); + let l111 = *ptr0.add(444).cast::(); + let l112 = *ptr0.add(448).cast::(); + let l113 = *ptr0.add(452).cast::(); + let l114 = *ptr0.add(456).cast::(); + let l115 = *ptr0.add(460).cast::(); + let l116 = *ptr0.add(464).cast::(); + let l117 = *ptr0.add(468).cast::(); + let l118 = *ptr0.add(472).cast::(); + let l119 = *ptr0.add(476).cast::(); + let l120 = *ptr0.add(480).cast::(); + let l121 = *ptr0.add(484).cast::(); + let l122 = *ptr0.add(488).cast::(); + let l123 = *ptr0.add(492).cast::(); + let l124 = *ptr0.add(496).cast::(); + let l125 = *ptr0.add(500).cast::(); + let l126 = *ptr0.add(504).cast::(); + let l127 = *ptr0.add(508).cast::(); + let l128 = *ptr0.add(512).cast::(); + let l129 = *ptr0.add(516).cast::(); + let l130 = *ptr0.add(520).cast::(); + let l131 = *ptr0.add(524).cast::(); + let l132 = *ptr0.add(528).cast::(); + let l133 = *ptr0.add(532).cast::(); + let l134 = *ptr0.add(536).cast::(); + let l135 = *ptr0.add(540).cast::(); + let l136 = *ptr0.add(544).cast::(); + let l137 = *ptr0.add(548).cast::(); + let l138 = *ptr0.add(552).cast::(); + let l139 = *ptr0.add(556).cast::(); + let l140 = *ptr0.add(560).cast::(); + let l141 = *ptr0.add(564).cast::(); + let l142 = *ptr0.add(568).cast::(); + let l143 = *ptr0.add(572).cast::(); + let l144 = *ptr0.add(576).cast::(); + let l145 = *ptr0.add(580).cast::(); + let l146 = *ptr0.add(584).cast::(); + let l147 = *ptr0.add(588).cast::(); + let l148 = *ptr0.add(592).cast::(); + let l149 = *ptr0.add(596).cast::(); + let l150 = *ptr0.add(600).cast::(); + let l151 = *ptr0.add(604).cast::(); + let l152 = *ptr0.add(608).cast::(); + let l153 = *ptr0.add(612).cast::(); + let l154 = *ptr0.add(616).cast::(); + let l155 = *ptr0.add(620).cast::(); + let l156 = *ptr0.add(624).cast::(); + let l157 = *ptr0.add(628).cast::(); + let l158 = *ptr0.add(632).cast::(); + let l159 = *ptr0.add(636).cast::(); + let l160 = *ptr0.add(640).cast::(); + let l161 = *ptr0.add(644).cast::(); + let l162 = *ptr0.add(648).cast::(); + let l163 = *ptr0.add(652).cast::(); + let l164 = *ptr0.add(656).cast::(); + let l165 = *ptr0.add(660).cast::(); + let l166 = *ptr0.add(664).cast::(); + let l167 = *ptr0.add(668).cast::(); + let l168 = *ptr0.add(672).cast::(); + let l169 = *ptr0.add(676).cast::(); + let l170 = *ptr0.add(680).cast::(); + let l171 = *ptr0.add(684).cast::(); + let l172 = *ptr0.add(688).cast::(); + let l173 = *ptr0.add(692).cast::(); + let l174 = *ptr0.add(696).cast::(); + let l175 = *ptr0.add(700).cast::(); + let l176 = *ptr0.add(704).cast::(); + let l177 = *ptr0.add(708).cast::(); + let l178 = *ptr0.add(712).cast::(); + let l179 = *ptr0.add(716).cast::(); + let l180 = *ptr0.add(720).cast::(); + let l181 = *ptr0.add(724).cast::(); + let l182 = *ptr0.add(728).cast::(); + let l183 = i32::from(*ptr0.add(732).cast::()); super::super::super::wired::input::types::Hand{ - side: super::super::super::wired::input::types::HandSide::_lift(l4 as u8), + side: super::super::super::wired::input::types::HandSide::_lift(l6 as u8), thumb: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l5, - y: l6, - z: l7, + x: l7, + y: l8, + z: l9, }, rotation: super::super::super::wired::math::types::Quat{ - x: l8, - y: l9, - z: l10, - w: l11, + x: l10, + y: l11, + z: l12, + w: l13, }, - radius: l12, + radius: l14, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l13, - y: l14, - z: l15, + x: l15, + y: l16, + z: l17, }, rotation: super::super::super::wired::math::types::Quat{ - x: l16, - y: l17, - z: l18, - w: l19, + x: l18, + y: l19, + z: l20, + w: l21, }, - radius: l20, + radius: l22, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l21, - y: l22, - z: l23, + x: l23, + y: l24, + z: l25, }, rotation: super::super::super::wired::math::types::Quat{ - x: l24, - y: l25, - z: l26, - w: l27, + x: l26, + y: l27, + z: l28, + w: l29, }, - radius: l28, + radius: l30, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l29, - y: l30, - z: l31, + x: l31, + y: l32, + z: l33, }, rotation: super::super::super::wired::math::types::Quat{ - x: l32, - y: l33, - z: l34, - w: l35, + x: l34, + y: l35, + z: l36, + w: l37, }, - radius: l36, + radius: l38, }, }, index: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l37, - y: l38, - z: l39, + x: l39, + y: l40, + z: l41, }, rotation: super::super::super::wired::math::types::Quat{ - x: l40, - y: l41, - z: l42, - w: l43, + x: l42, + y: l43, + z: l44, + w: l45, }, - radius: l44, + radius: l46, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l45, - y: l46, - z: l47, + x: l47, + y: l48, + z: l49, }, rotation: super::super::super::wired::math::types::Quat{ - x: l48, - y: l49, - z: l50, - w: l51, + x: l50, + y: l51, + z: l52, + w: l53, }, - radius: l52, + radius: l54, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l53, - y: l54, - z: l55, + x: l55, + y: l56, + z: l57, }, rotation: super::super::super::wired::math::types::Quat{ - x: l56, - y: l57, - z: l58, - w: l59, + x: l58, + y: l59, + z: l60, + w: l61, }, - radius: l60, + radius: l62, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l61, - y: l62, - z: l63, + x: l63, + y: l64, + z: l65, }, rotation: super::super::super::wired::math::types::Quat{ - x: l64, - y: l65, - z: l66, - w: l67, + x: l66, + y: l67, + z: l68, + w: l69, }, - radius: l68, + radius: l70, }, }, middle: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l69, - y: l70, - z: l71, + x: l71, + y: l72, + z: l73, }, rotation: super::super::super::wired::math::types::Quat{ - x: l72, - y: l73, - z: l74, - w: l75, + x: l74, + y: l75, + z: l76, + w: l77, }, - radius: l76, + radius: l78, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l77, - y: l78, - z: l79, + x: l79, + y: l80, + z: l81, }, rotation: super::super::super::wired::math::types::Quat{ - x: l80, - y: l81, - z: l82, - w: l83, + x: l82, + y: l83, + z: l84, + w: l85, }, - radius: l84, + radius: l86, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l85, - y: l86, - z: l87, + x: l87, + y: l88, + z: l89, }, rotation: super::super::super::wired::math::types::Quat{ - x: l88, - y: l89, - z: l90, - w: l91, + x: l90, + y: l91, + z: l92, + w: l93, }, - radius: l92, + radius: l94, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l93, - y: l94, - z: l95, + x: l95, + y: l96, + z: l97, }, rotation: super::super::super::wired::math::types::Quat{ - x: l96, - y: l97, - z: l98, - w: l99, + x: l98, + y: l99, + z: l100, + w: l101, }, - radius: l100, + radius: l102, }, }, ring: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l101, - y: l102, - z: l103, + x: l103, + y: l104, + z: l105, }, rotation: super::super::super::wired::math::types::Quat{ - x: l104, - y: l105, - z: l106, - w: l107, + x: l106, + y: l107, + z: l108, + w: l109, }, - radius: l108, + radius: l110, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l109, - y: l110, - z: l111, + x: l111, + y: l112, + z: l113, }, rotation: super::super::super::wired::math::types::Quat{ - x: l112, - y: l113, - z: l114, - w: l115, + x: l114, + y: l115, + z: l116, + w: l117, }, - radius: l116, + radius: l118, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l117, - y: l118, - z: l119, + x: l119, + y: l120, + z: l121, }, rotation: super::super::super::wired::math::types::Quat{ - x: l120, - y: l121, - z: l122, - w: l123, + x: l122, + y: l123, + z: l124, + w: l125, }, - radius: l124, + radius: l126, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l125, - y: l126, - z: l127, + x: l127, + y: l128, + z: l129, }, rotation: super::super::super::wired::math::types::Quat{ - x: l128, - y: l129, - z: l130, - w: l131, + x: l130, + y: l131, + z: l132, + w: l133, }, - radius: l132, + radius: l134, }, }, little: super::super::super::wired::input::types::Finger{ tip: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l133, - y: l134, - z: l135, + x: l135, + y: l136, + z: l137, }, rotation: super::super::super::wired::math::types::Quat{ - x: l136, - y: l137, - z: l138, - w: l139, + x: l138, + y: l139, + z: l140, + w: l141, }, - radius: l140, + radius: l142, }, distal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l141, - y: l142, - z: l143, + x: l143, + y: l144, + z: l145, }, rotation: super::super::super::wired::math::types::Quat{ - x: l144, - y: l145, - z: l146, - w: l147, + x: l146, + y: l147, + z: l148, + w: l149, }, - radius: l148, + radius: l150, }, proximal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l149, - y: l150, - z: l151, + x: l151, + y: l152, + z: l153, }, rotation: super::super::super::wired::math::types::Quat{ - x: l152, - y: l153, - z: l154, - w: l155, + x: l154, + y: l155, + z: l156, + w: l157, }, - radius: l156, + radius: l158, }, metacarpal: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l157, - y: l158, - z: l159, + x: l159, + y: l160, + z: l161, }, rotation: super::super::super::wired::math::types::Quat{ - x: l160, - y: l161, - z: l162, - w: l163, + x: l162, + y: l163, + z: l164, + w: l165, }, - radius: l164, + radius: l166, }, }, palm: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l165, - y: l166, - z: l167, + x: l167, + y: l168, + z: l169, }, rotation: super::super::super::wired::math::types::Quat{ - x: l168, - y: l169, - z: l170, - w: l171, + x: l170, + y: l171, + z: l172, + w: l173, }, - radius: l172, + radius: l174, }, wrist: super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l173, - y: l174, - z: l175, + x: l175, + y: l176, + z: l177, }, rotation: super::super::super::wired::math::types::Quat{ - x: l176, - y: l177, - z: l178, - w: l179, + x: l178, + y: l179, + z: l180, + w: l181, }, - radius: l180, + radius: l182, }, - elbow: match l181 { + elbow: match l183 { 0 => None, 1 => { let e = { - let l182 = *ptr0.add(732).cast::(); - let l183 = *ptr0.add(736).cast::(); - let l184 = *ptr0.add(740).cast::(); - let l185 = *ptr0.add(744).cast::(); - let l186 = *ptr0.add(748).cast::(); - let l187 = *ptr0.add(752).cast::(); - let l188 = *ptr0.add(756).cast::(); - let l189 = *ptr0.add(760).cast::(); + let l184 = *ptr0.add(736).cast::(); + let l185 = *ptr0.add(740).cast::(); + let l186 = *ptr0.add(744).cast::(); + let l187 = *ptr0.add(748).cast::(); + let l188 = *ptr0.add(752).cast::(); + let l189 = *ptr0.add(756).cast::(); + let l190 = *ptr0.add(760).cast::(); + let l191 = *ptr0.add(764).cast::(); super::super::super::wired::input::types::Joint{ translation: super::super::super::wired::math::types::Vec3{ - x: l182, - y: l183, - z: l184, + x: l184, + y: l185, + z: l186, }, rotation: super::super::super::wired::math::types::Quat{ - x: l185, - y: l186, - z: l187, - w: l188, + x: l187, + y: l188, + z: l189, + w: l190, }, - radius: l189, + radius: l191, } }; Some(e) @@ -1857,72 +1857,41 @@ pub mod wired { }, } }; - V205::Hand(e205) + V199::Hand(e199) } - 1 => { - let e205 = { - let l190 = *ptr0.add(20).cast::(); - let l191 = *ptr0.add(24).cast::(); - let l192 = *ptr0.add(28).cast::(); - let l193 = *ptr0.add(32).cast::(); - let l194 = *ptr0.add(36).cast::(); - let l195 = *ptr0.add(40).cast::(); - let l196 = *ptr0.add(44).cast::(); + n => { + debug_assert_eq!(n, 1, "invalid enum discriminant"); + let e199 = { + let l192 = *ptr0.add(24).cast::(); + let l193 = *ptr0.add(28).cast::(); + let l194 = *ptr0.add(32).cast::(); + let l195 = *ptr0.add(36).cast::(); + let l196 = *ptr0.add(40).cast::(); + let l197 = *ptr0.add(44).cast::(); + let l198 = *ptr0.add(48).cast::(); super::super::super::wired::input::types::Ray{ - origin: super::super::super::wired::math::types::Vec3{ - x: l190, - y: l191, - z: l192, - }, orientation: super::super::super::wired::math::types::Quat{ - x: l193, - y: l194, - z: l195, - w: l196, + x: l192, + y: l193, + z: l194, + w: l195, }, - } - }; - V205::Ray(e205) - } - n => { - debug_assert_eq!(n, 2, "invalid enum discriminant"); - let e205 = { - let l197 = *ptr0.add(20).cast::(); - let l198 = *ptr0.add(24).cast::(); - let l199 = *ptr0.add(28).cast::(); - let l200 = *ptr0.add(32).cast::(); - let l201 = *ptr0.add(36).cast::(); - let l202 = *ptr0.add(40).cast::(); - let l203 = *ptr0.add(44).cast::(); - let l204 = *ptr0.add(48).cast::(); - - super::super::super::wired::input::types::Tip{ origin: super::super::super::wired::math::types::Vec3{ - x: l197, - y: l198, - z: l199, - }, - orientation: super::super::super::wired::math::types::Quat{ - x: l200, - y: l201, - z: l202, - w: l203, + x: l196, + y: l197, + z: l198, }, - radius: l204, } }; - V205::Tip(e205) + V199::Ray(e199) } }; - let l206 = *ptr0.add(764).cast::(); - let l207 = *ptr0.add(768).cast::(); super::super::super::wired::input::types::InputEvent { id: l2 as u64, - input: v205, - distance: l206, - order: l207 as u32, + action: v4, + data: v199, } }; Some(e) @@ -4909,8 +4878,8 @@ pub(crate) use __export_guest_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:guest:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 5911] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x9b-\x01A\x02\x01A\x1d\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 5886] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x82-\x01A\x02\x01A\x1d\ \x01B\x10\x01r\x02\x01xv\x01yv\x04\0\x04vec2\x03\0\0\x01r\x03\x01xv\x01yv\x01zv\x04\ \0\x04vec3\x03\0\x02\x01r\x04\x01xv\x01yv\x01zv\x01wv\x04\0\x04quat\x03\0\x04\x01\ r\x03\x08rotation\x05\x05scale\x03\x0btranslation\x03\x04\0\x09transform\x03\0\x06\ @@ -4946,101 +4915,101 @@ method]mesh.create-primitive\x01\x1a\x01@\x02\x04self\x12\x05value\x17\x01\0\x04 \0\x05joint\x03\0\x06\x01r\x04\x03tip\x07\x06distal\x07\x08proximal\x07\x0ametac\ arpal\x07\x04\0\x06finger\x03\0\x08\x01k\x07\x01r\x09\x04side\x05\x05thumb\x09\x05\ index\x09\x06middle\x09\x04ring\x09\x06little\x09\x04palm\x07\x05wrist\x07\x05el\ -bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x06origin\x01\x0borientation\x03\x04\0\x03\ -ray\x03\0\x0d\x01r\x03\x06origin\x01\x0borientation\x03\x06radiusv\x04\0\x03tip\x03\ -\0\x0f\x01q\x03\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x03tip\x01\x10\0\x04\0\x0ainp\ -ut-type\x03\0\x11\x01r\x04\x02idw\x05input\x12\x08distancev\x05ordery\x04\0\x0bi\ -nput-event\x03\0\x13\x03\x01\x11wired:input/types\x05\x06\x02\x03\0\x03\x0binput\ --event\x01B\x0a\x02\x03\x02\x01\x07\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-\ -handler\x03\x01\x01i\x02\x01@\0\0\x03\x04\0\x1a[constructor]input-handler\x01\x04\ -\x01h\x02\x01k\x01\x01@\x01\x04self\x05\0\x06\x04\0\"[method]input-handler.handl\ -e-input\x01\x07\x03\x01\x13wired:input/handler\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\ -\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\x01\x01r\x02\x06heightv\x06radiusv\x04\ -\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06cuboid\x01\x01\0\x08cylinder\x01\x04\0\ -\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\x04\0\x0arigid-body\x03\x01\x01m\x03\x07\ -dynamic\x05fixed\x09kinematic\x04\0\x0frigid-body-type\x03\0\x08\x01i\x02\x01@\x01\ -\x05shape\x06\0\x0a\x04\0\x15[constructor]collider\x01\x0b\x01h\x02\x01@\x01\x04\ -self\x0c\0v\x04\0\x18[method]collider.density\x01\x0d\x01@\x02\x04self\x0c\x05va\ -luev\x01\0\x04\0\x1c[method]collider.set-density\x01\x0e\x01i\x07\x01@\x01\x0fri\ -gid-body-type\x09\0\x0f\x04\0\x17[constructor]rigid-body\x01\x10\x01h\x07\x01@\x01\ -\x04self\x11\0\x01\x04\0\x19[method]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\ -\x05value\x01\x01\0\x04\0\x1d[method]rigid-body.set-angvel\x01\x13\x04\0\x19[met\ -hod]rigid-body.linvel\x01\x12\x04\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\ -\x01\x13wired:physics/types\x05\x09\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput\ --handler\x02\x03\0\0\x09transform\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0arig\ -id-body\x01BE\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\ -\x0dinput-handler\x03\0\x02\x02\x03\x02\x01\x0c\x04\0\x09transform\x03\0\x04\x02\ -\x03\x02\x01\x0d\x04\0\x08collider\x03\0\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-\ -body\x03\0\x08\x04\0\x04node\x03\x01\x01i\x0a\x01@\0\0\x0b\x04\0\x11[constructor\ -]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\0y\x04\0\x0f[method]node.id\x01\x0e\x01\ -@\x01\x04self\x0d\0\x0b\x04\0\x10[method]node.ref\x01\x0f\x01@\x01\x04self\x0d\0\ -s\x04\0\x11[method]node.name\x01\x10\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15\ -[method]node.set-name\x01\x11\x01p\x0b\x01@\x01\x04self\x0d\0\x12\x04\0\x15[meth\ -od]node.children\x01\x13\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[metho\ -d]node.add-child\x01\x14\x04\0\x19[method]node.remove-child\x01\x14\x01k\x0b\x01\ -@\x01\x04self\x0d\0\x15\x04\0\x13[method]node.parent\x01\x16\x01@\x01\x04self\x0d\ -\0\x05\x04\0\x1d[method]node.global-transform\x01\x17\x04\0\x16[method]node.tran\ -sform\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-\ -transform\x01\x18\x01i\x01\x01k\x19\x01@\x01\x04self\x0d\0\x1a\x04\0\x11[method]\ -node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\ -\x15[method]node.set-mesh\x01\x1e\x01i\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\ -\0\x15[method]node.collider\x01!\x01h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\ -\0\x04\0\x19[method]node.set-collider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0\ -&\x04\0\x17[method]node.rigid-body\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05v\ -alue)\x01\0\x04\0\x1b[method]node.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04\ -self\x0d\0,\x04\0\x1a[method]node.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04\ -self\x0d\x05value/\x01\0\x04\0\x1e[method]node.set-input-handler\x010\x03\x01\x10\ -wired:scene/node\x05\x0f\x02\x03\0\0\x04vec2\x02\x03\0\x06\x04node\x01BY\x02\x03\ -\x02\x01\x10\x04\0\x04vec2\x03\0\0\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\x02\ -\x03\x02\x01\x0a\x04\0\x04mesh\x03\0\x04\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\ -\x06\x04\0\x09rectangle\x03\x01\x04\0\x08cylinder\x03\x01\x04\0\x06cuboid\x03\x01\ -\x01r\x01\x0csubdivisions}\x04\0\x0asphere-ico\x03\0\x0b\x01r\x02\x07sectors}\x06\ -stacks}\x04\0\x09sphere-uv\x03\0\x0d\x01q\x02\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\ -\0\x0bsphere-kind\x03\0\x0f\x04\0\x06sphere\x03\x01\x01i\x08\x01@\x01\x04size\x01\ -\0\x12\x04\0\x16[constructor]rectangle\x01\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\ -\x04\0\x16[method]rectangle.size\x01\x15\x01@\x02\x04self\x14\x05value\x01\x01\0\ -\x04\0\x1a[method]rectangle.set-size\x01\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\ -\x04\0\x19[method]rectangle.to-mesh\x01\x18\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\ -\0\x19[method]rectangle.to-node\x01\x1a\x04\0![method]rectangle.to-physics-node\x01\ -\x1a\x01i\x09\x01@\x02\x06radiusv\x06heightv\0\x1b\x04\0\x15[constructor]cylinde\ -r\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\0\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\ -\x01@\x02\x04self\x1d\x05value\x7f\x01\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\ -\x01@\x01\x04self\x1d\0v\x04\0\x17[method]cylinder.height\x01\x20\x01@\x02\x04se\ -lf\x1d\x05valuev\x01\0\x04\0\x1b[method]cylinder.set-height\x01!\x04\0\x17[metho\ -d]cylinder.radius\x01\x20\x04\0\x1b[method]cylinder.set-radius\x01!\x01@\x01\x04\ -self\x1d\0}\x04\0\x1b[method]cylinder.resolution\x01\"\x01@\x02\x04self\x1d\x05v\ -alue}\x01\0\x04\0\x1f[method]cylinder.set-resolution\x01#\x04\0\x19[method]cylin\ -der.segments\x01\"\x04\0\x1d[method]cylinder.set-segments\x01#\x01@\x01\x04self\x1d\ -\0\x17\x04\0\x18[method]cylinder.to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18\ -[method]cylinder.to-node\x01%\x04\0\x20[method]cylinder.to-physics-node\x01%\x01\ -i\x0a\x01@\x01\x04size\x03\0&\x04\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\ -\x04self(\0\x03\x04\0\x13[method]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\ -\x01\0\x04\0\x17[method]cuboid.set-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[m\ -ethod]cuboid.to-mesh\x01+\x01@\x01\x04self(\0\x19\x04\0\x16[method]cuboid.to-nod\ -e\x01,\x04\0\x1e[method]cuboid.to-physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\ -\0-\x04\0\x16[static]sphere.new-ico\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01\ -h\x11\x01@\x01\x04self/\0v\x04\0\x15[method]sphere.radius\x010\x01@\x02\x04self/\ -\x05valuev\x01\0\x04\0\x19[method]sphere.set-radius\x011\x01@\x01\x04self/\0\x10\ -\x04\0\x13[method]sphere.kind\x012\x01@\x02\x04self/\x05value\x10\x01\0\x04\0\x17\ -[method]sphere.set-kind\x013\x01@\x01\x04self/\0\x17\x04\0\x16[method]sphere.to-\ -mesh\x014\x01@\x01\x04self/\0\x19\x04\0\x16[method]sphere.to-node\x015\x04\0\x1e\ -[method]sphere.to-physics-node\x015\x03\x01\x10unavi:shapes/api\x05\x12\x01B%\x02\ -\x03\x02\x01\x11\x04\0\x04node\x03\0\0\x04\0\x06screen\x03\x01\x04\0\x06module\x03\ -\x01\x01i\x02\x01@\0\0\x04\x04\0\x13[constructor]screen\x01\x05\x01h\x02\x01i\x01\ -\x01@\x01\x04self\x06\0\x07\x04\0\x13[method]screen.root\x01\x08\x01@\x01\x04sel\ -f\x06\0\x7f\x04\0\x16[method]screen.visible\x01\x09\x01@\x02\x04self\x06\x05valu\ -e\x7f\x01\0\x04\0\x1a[method]screen.set-visible\x01\x0a\x01i\x03\x01k\x0b\x01@\x01\ -\x04self\x06\0\x0c\x04\0\x1d[method]screen.central-module\x01\x0d\x01h\x03\x01k\x0e\ -\x01@\x02\x04self\x06\x05value\x0f\x01\0\x04\0![method]screen.set-central-module\ -\x01\x10\x01@\x02\x04self\x06\x05value\x0e\x01\0\x04\0\x19[method]screen.add-mod\ -ule\x01\x11\x04\0\x1c[method]screen.remove-module\x01\x11\x01p\x0b\x01@\x01\x04s\ -elf\x06\0\x12\x04\0\x16[method]screen.modules\x01\x13\x01@\x02\x04self\x06\x05de\ -ltav\x01\0\x04\0\x15[method]screen.update\x01\x14\x01@\0\0\x0b\x04\0\x13[constru\ -ctor]module\x01\x15\x01@\x01\x04self\x0e\0\x07\x04\0\x13[method]module.root\x01\x16\ -\x01@\x02\x04self\x0e\x05deltav\x01\0\x04\0\x15[method]module.update\x01\x17\x04\ -\x01\x14unavi:vscreen/screen\x05\x13\x04\x01\x13unavi:vscreen/guest\x04\0\x0b\x0b\ -\x01\0\x05guest\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\ -\x070.208.1\x10wit-bindgen-rust\x060.25.0"; +bow\x0a\x04\0\x04hand\x03\0\x0b\x01r\x02\x0borientation\x03\x06origin\x01\x04\0\x03\ +ray\x03\0\x0d\x01q\x02\x04hand\x01\x0c\0\x03ray\x01\x0e\0\x04\0\x0ainput-data\x03\ +\0\x0f\x01q\x02\x09collision\0\0\x05hover\0\0\x04\0\x0cinput-action\x03\0\x11\x01\ +r\x03\x02idw\x06action\x12\x04data\x10\x04\0\x0binput-event\x03\0\x13\x03\x01\x11\ +wired:input/types\x05\x06\x02\x03\0\x03\x0binput-event\x01B\x0a\x02\x03\x02\x01\x07\ +\x04\0\x0binput-event\x03\0\0\x04\0\x0dinput-handler\x03\x01\x01i\x02\x01@\0\0\x03\ +\x04\0\x1a[constructor]input-handler\x01\x04\x01h\x02\x01k\x01\x01@\x01\x04self\x05\ +\0\x06\x04\0\x1a[method]input-handler.next\x01\x07\x03\x01\x13wired:input/handle\ +r\x05\x08\x01B\x1c\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\0\x04\0\x08collider\x03\ +\x01\x01r\x02\x06heightv\x06radiusv\x04\0\x0eshape-cylinder\x03\0\x03\x01q\x03\x06\ +cuboid\x01\x01\0\x08cylinder\x01\x04\0\x06sphere\x01v\0\x04\0\x05shape\x03\0\x05\ +\x04\0\x0arigid-body\x03\x01\x01m\x03\x07dynamic\x05fixed\x09kinematic\x04\0\x0f\ +rigid-body-type\x03\0\x08\x01i\x02\x01@\x01\x05shape\x06\0\x0a\x04\0\x15[constru\ +ctor]collider\x01\x0b\x01h\x02\x01@\x01\x04self\x0c\0v\x04\0\x18[method]collider\ +.density\x01\x0d\x01@\x02\x04self\x0c\x05valuev\x01\0\x04\0\x1c[method]collider.\ +set-density\x01\x0e\x01i\x07\x01@\x01\x0frigid-body-type\x09\0\x0f\x04\0\x17[con\ +structor]rigid-body\x01\x10\x01h\x07\x01@\x01\x04self\x11\0\x01\x04\0\x19[method\ +]rigid-body.angvel\x01\x12\x01@\x02\x04self\x11\x05value\x01\x01\0\x04\0\x1d[met\ +hod]rigid-body.set-angvel\x01\x13\x04\0\x19[method]rigid-body.linvel\x01\x12\x04\ +\0\x1d[method]rigid-body.set-linvel\x01\x13\x03\x01\x13wired:physics/types\x05\x09\ +\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput-handler\x02\x03\0\0\x09transform\x02\ +\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BE\x02\x03\x02\x01\x0a\x04\ +\0\x04mesh\x03\0\0\x02\x03\x02\x01\x0b\x04\0\x0dinput-handler\x03\0\x02\x02\x03\x02\ +\x01\x0c\x04\0\x09transform\x03\0\x04\x02\x03\x02\x01\x0d\x04\0\x08collider\x03\0\ +\x06\x02\x03\x02\x01\x0e\x04\0\x0arigid-body\x03\0\x08\x04\0\x04node\x03\x01\x01\ +i\x0a\x01@\0\0\x0b\x04\0\x11[constructor]node\x01\x0c\x01h\x0a\x01@\x01\x04self\x0d\ +\0y\x04\0\x0f[method]node.id\x01\x0e\x01@\x01\x04self\x0d\0\x0b\x04\0\x10[method\ +]node.ref\x01\x0f\x01@\x01\x04self\x0d\0s\x04\0\x11[method]node.name\x01\x10\x01\ +@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-name\x01\x11\x01p\x0b\ +\x01@\x01\x04self\x0d\0\x12\x04\0\x15[method]node.children\x01\x13\x01@\x02\x04s\ +elf\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\x14\x04\0\x19[met\ +hod]node.remove-child\x01\x14\x01k\x0b\x01@\x01\x04self\x0d\0\x15\x04\0\x13[meth\ +od]node.parent\x01\x16\x01@\x01\x04self\x0d\0\x05\x04\0\x1d[method]node.global-t\ +ransform\x01\x17\x04\0\x16[method]node.transform\x01\x17\x01@\x02\x04self\x0d\x05\ +value\x05\x01\0\x04\0\x1a[method]node.set-transform\x01\x18\x01i\x01\x01k\x19\x01\ +@\x01\x04self\x0d\0\x1a\x04\0\x11[method]node.mesh\x01\x1b\x01h\x01\x01k\x1c\x01\ +@\x02\x04self\x0d\x05value\x1d\x01\0\x04\0\x15[method]node.set-mesh\x01\x1e\x01i\ +\x07\x01k\x1f\x01@\x01\x04self\x0d\0\x20\x04\0\x15[method]node.collider\x01!\x01\ +h\x07\x01k\"\x01@\x02\x04self\x0d\x05value#\x01\0\x04\0\x19[method]node.set-coll\ +ider\x01$\x01i\x09\x01k%\x01@\x01\x04self\x0d\0&\x04\0\x17[method]node.rigid-bod\ +y\x01'\x01h\x09\x01k(\x01@\x02\x04self\x0d\x05value)\x01\0\x04\0\x1b[method]node\ +.set-rigid-body\x01*\x01i\x03\x01k+\x01@\x01\x04self\x0d\0,\x04\0\x1a[method]nod\ +e.input-handler\x01-\x01h\x03\x01k.\x01@\x02\x04self\x0d\x05value/\x01\0\x04\0\x1e\ +[method]node.set-input-handler\x010\x03\x01\x10wired:scene/node\x05\x0f\x02\x03\0\ +\0\x04vec2\x02\x03\0\x06\x04node\x01BY\x02\x03\x02\x01\x10\x04\0\x04vec2\x03\0\0\ +\x02\x03\x02\x01\x04\x04\0\x04vec3\x03\0\x02\x02\x03\x02\x01\x0a\x04\0\x04mesh\x03\ +\0\x04\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\x06\x04\0\x09rectangle\x03\x01\x04\ +\0\x08cylinder\x03\x01\x04\0\x06cuboid\x03\x01\x01r\x01\x0csubdivisions}\x04\0\x0a\ +sphere-ico\x03\0\x0b\x01r\x02\x07sectors}\x06stacks}\x04\0\x09sphere-uv\x03\0\x0d\ +\x01q\x02\x03ico\x01\x0c\0\x02uv\x01\x0e\0\x04\0\x0bsphere-kind\x03\0\x0f\x04\0\x06\ +sphere\x03\x01\x01i\x08\x01@\x01\x04size\x01\0\x12\x04\0\x16[constructor]rectang\ +le\x01\x13\x01h\x08\x01@\x01\x04self\x14\0\x01\x04\0\x16[method]rectangle.size\x01\ +\x15\x01@\x02\x04self\x14\x05value\x01\x01\0\x04\0\x1a[method]rectangle.set-size\ +\x01\x16\x01i\x05\x01@\x01\x04self\x14\0\x17\x04\0\x19[method]rectangle.to-mesh\x01\ +\x18\x01i\x07\x01@\x01\x04self\x14\0\x19\x04\0\x19[method]rectangle.to-node\x01\x1a\ +\x04\0![method]rectangle.to-physics-node\x01\x1a\x01i\x09\x01@\x02\x06radiusv\x06\ +heightv\0\x1b\x04\0\x15[constructor]cylinder\x01\x1c\x01h\x09\x01@\x01\x04self\x1d\ +\0\x7f\x04\0\x14[method]cylinder.cap\x01\x1e\x01@\x02\x04self\x1d\x05value\x7f\x01\ +\0\x04\0\x18[method]cylinder.set-cap\x01\x1f\x01@\x01\x04self\x1d\0v\x04\0\x17[m\ +ethod]cylinder.height\x01\x20\x01@\x02\x04self\x1d\x05valuev\x01\0\x04\0\x1b[met\ +hod]cylinder.set-height\x01!\x04\0\x17[method]cylinder.radius\x01\x20\x04\0\x1b[\ +method]cylinder.set-radius\x01!\x01@\x01\x04self\x1d\0}\x04\0\x1b[method]cylinde\ +r.resolution\x01\"\x01@\x02\x04self\x1d\x05value}\x01\0\x04\0\x1f[method]cylinde\ +r.set-resolution\x01#\x04\0\x19[method]cylinder.segments\x01\"\x04\0\x1d[method]\ +cylinder.set-segments\x01#\x01@\x01\x04self\x1d\0\x17\x04\0\x18[method]cylinder.\ +to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18[method]cylinder.to-node\x01%\x04\ +\0\x20[method]cylinder.to-physics-node\x01%\x01i\x0a\x01@\x01\x04size\x03\0&\x04\ +\0\x13[constructor]cuboid\x01'\x01h\x0a\x01@\x01\x04self(\0\x03\x04\0\x13[method\ +]cuboid.size\x01)\x01@\x02\x04self(\x05value\x03\x01\0\x04\0\x17[method]cuboid.s\ +et-size\x01*\x01@\x01\x04self(\0\x17\x04\0\x16[method]cuboid.to-mesh\x01+\x01@\x01\ +\x04self(\0\x19\x04\0\x16[method]cuboid.to-node\x01,\x04\0\x1e[method]cuboid.to-\ +physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\0-\x04\0\x16[static]sphere.new-ic\ +o\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01h\x11\x01@\x01\x04self/\0v\x04\0\x15\ +[method]sphere.radius\x010\x01@\x02\x04self/\x05valuev\x01\0\x04\0\x19[method]sp\ +here.set-radius\x011\x01@\x01\x04self/\0\x10\x04\0\x13[method]sphere.kind\x012\x01\ +@\x02\x04self/\x05value\x10\x01\0\x04\0\x17[method]sphere.set-kind\x013\x01@\x01\ +\x04self/\0\x17\x04\0\x16[method]sphere.to-mesh\x014\x01@\x01\x04self/\0\x19\x04\ +\0\x16[method]sphere.to-node\x015\x04\0\x1e[method]sphere.to-physics-node\x015\x03\ +\x01\x10unavi:shapes/api\x05\x12\x01B%\x02\x03\x02\x01\x11\x04\0\x04node\x03\0\0\ +\x04\0\x06screen\x03\x01\x04\0\x06module\x03\x01\x01i\x02\x01@\0\0\x04\x04\0\x13\ +[constructor]screen\x01\x05\x01h\x02\x01i\x01\x01@\x01\x04self\x06\0\x07\x04\0\x13\ +[method]screen.root\x01\x08\x01@\x01\x04self\x06\0\x7f\x04\0\x16[method]screen.v\ +isible\x01\x09\x01@\x02\x04self\x06\x05value\x7f\x01\0\x04\0\x1a[method]screen.s\ +et-visible\x01\x0a\x01i\x03\x01k\x0b\x01@\x01\x04self\x06\0\x0c\x04\0\x1d[method\ +]screen.central-module\x01\x0d\x01h\x03\x01k\x0e\x01@\x02\x04self\x06\x05value\x0f\ +\x01\0\x04\0![method]screen.set-central-module\x01\x10\x01@\x02\x04self\x06\x05v\ +alue\x0e\x01\0\x04\0\x19[method]screen.add-module\x01\x11\x04\0\x1c[method]scree\ +n.remove-module\x01\x11\x01p\x0b\x01@\x01\x04self\x06\0\x12\x04\0\x16[method]scr\ +een.modules\x01\x13\x01@\x02\x04self\x06\x05deltav\x01\0\x04\0\x15[method]screen\ +.update\x01\x14\x01@\0\0\x0b\x04\0\x13[constructor]module\x01\x15\x01@\x01\x04se\ +lf\x0e\0\x07\x04\0\x13[method]module.root\x01\x16\x01@\x02\x04self\x0e\x05deltav\ +\x01\0\x04\0\x15[method]module.update\x01\x17\x04\x01\x14unavi:vscreen/screen\x05\ +\x13\x04\x01\x13unavi:vscreen/guest\x04\0\x0b\x0b\x01\0\x05guest\x03\0\0\0G\x09p\ +roducers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-bindgen-rust\ +\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/wired-protocol b/wired-protocol index 9ac06c432..36d8f538b 160000 --- a/wired-protocol +++ b/wired-protocol @@ -1 +1 @@ -Subproject commit 9ac06c43209e967680aabc307f0e46bf641c8af1 +Subproject commit 36d8f538b6e1b6885277568ddceec94794d533e4