Skip to content

Commit

Permalink
implement unavi-layout container alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Aug 25, 2024
1 parent dbd9e7f commit 7a7427b
Show file tree
Hide file tree
Showing 20 changed files with 1,797 additions and 1,418 deletions.
3 changes: 2 additions & 1 deletion crates/unavi-scripting/examples/unavi-layout.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use avian3d::PhysicsPlugins;
use avian3d::{prelude::PhysicsDebugPlugin, PhysicsPlugins};
use bevy::prelude::*;
use bevy_inspector_egui::quick::WorldInspectorPlugin;
use bevy_panorbit_camera::{PanOrbitCamera, PanOrbitCameraPlugin};
Expand All @@ -13,6 +13,7 @@ fn main() {
}),
WorldInspectorPlugin::default(),
PanOrbitCameraPlugin,
PhysicsDebugPlugin::default(),
PhysicsPlugins::default(),
ScriptingPlugin,
))
Expand Down
4 changes: 4 additions & 0 deletions crates/unavi-scripting/src/api/wired_scene/gltf/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ impl HostNode for StoreState {
fn id(&mut self, self_: Resource<NodeRes>) -> wasm_bridge::Result<u32> {
Ok(self_.rep())
}
fn ref_(&mut self, self_: Resource<NodeRes>) -> wasm_bridge::Result<Resource<NodeRes>> {
let value = NodeRes::from_res(&self_, &self.table)?;
Ok(value)
}

fn name(&mut self, self_: Resource<NodeRes>) -> wasm_bridge::Result<String> {
let data = self.table.get(&self_)?;
Expand Down
208 changes: 115 additions & 93 deletions wasm/example-unavi-layout/src/bindings.rs

Large diffs are not rendered by default.

55 changes: 42 additions & 13 deletions wasm/example-unavi-layout/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,34 +1,55 @@
use std::f32::consts::PI;

use bindings::{
exports::wired::script::types::{Guest, GuestScript},
unavi::{
layout::container::Container,
layout::container::{Alignment, Container},
scene::api::{Root, Scene},
shapes::api::Rectangle,
shapes::api::Cuboid,
},
wired::{
math::types::{Transform, Vec3},
physics::types::{Collider, Shape},
},
wired::math::types::{Quat, Transform, Vec2, Vec3},
};

#[allow(warnings)]
mod bindings;
mod wired_math_impls;

const SPACING: f32 = 1.0;

struct Script {}

impl GuestScript for Script {
fn new() -> Self {
let scene = Scene::new();

let bg = Rectangle::new(Vec2::new(5.0, 3.0)).to_physics_node();
bg.set_transform(Transform {
translation: Vec3::new(0.0, 0.0, -8.0),
rotation: Quat::from_rotation_y(PI),
..Default::default()
});
scene.add_node(&bg);
for x in 0..3 {
for y in 0..3 {
for z in 0..3 {
let size = Vec3::splat(1.0);

let container = Container::new(size);
let root = container.root();
scene.add_node(&root);

let collider = Collider::new(Shape::Cuboid(size));
root.set_collider(Some(&collider));

let _a = Container::new(Vec3::splat(1.0));
root.set_transform(Transform::from_translation(Vec3::new(
x as f32 * SPACING,
y as f32 * SPACING,
z as f32 * SPACING,
)));

container.set_align_x(get_alignment(x));
container.set_align_y(get_alignment(y));
container.set_align_z(get_alignment(z));

let mesh = Cuboid::new(Vec3::splat(0.2)).to_node();
container.inner().add_child(&mesh);
}
}
}

Root::add_scene(&scene);

Expand All @@ -38,6 +59,14 @@ impl GuestScript for Script {
fn update(&self, _delta: f32) {}
}

fn get_alignment(num: usize) -> Alignment {
match num {
0 => Alignment::Start,
1 => Alignment::Center,
2.. => Alignment::End,
}
}

struct Types;

impl Guest for Types {
Expand Down
166 changes: 94 additions & 72 deletions wasm/example-unavi-scene/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3646,6 +3646,27 @@ pub mod wired {
}
}
}
impl Node {
#[allow(unused_unsafe, clippy::all)]
/// Returns another reference to the same resource.
pub fn ref_(&self) -> Node {
unsafe {
#[cfg(target_arch = "wasm32")]
#[link(wasm_import_module = "wired:scene/node")]
extern "C" {
#[link_name = "[method]node.ref"]
fn wit_import(_: i32) -> i32;
}

#[cfg(not(target_arch = "wasm32"))]
fn wit_import(_: i32) -> i32 {
unreachable!()
}
let ret = wit_import((self).handle() as i32);
Node::from_handle(ret as u32)
}
}
}
impl Node {
#[allow(unused_unsafe, clippy::all)]
pub fn name(&self) -> _rt::String {
Expand Down Expand Up @@ -4699,8 +4720,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; 5767] = *b"\
\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x8a,\x01A\x02\x01A\x1f\
pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 5799] = *b"\
\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xaa,\x01A\x02\x01A\x1f\
\x01B\x08\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\
Expand Down Expand Up @@ -4754,80 +4775,81 @@ thod]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\
\x09\x02\x03\0\x02\x04mesh\x02\x03\0\x04\x0dinput-handler\x02\x03\0\0\x09transfo\
rm\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BB\x02\x03\x02\x01\x0a\
rm\x02\x03\0\x05\x08collider\x02\x03\0\x05\x0arigid-body\x01BD\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\0s\x04\0\x11[method]no\
de.name\x01\x0f\x01@\x02\x04self\x0d\x05values\x01\0\x04\0\x15[method]node.set-n\
ame\x01\x10\x01p\x0b\x01@\x01\x04self\x0d\0\x11\x04\0\x15[method]node.children\x01\
\x12\x01@\x02\x04self\x0d\x05value\x0d\x01\0\x04\0\x16[method]node.add-child\x01\
\x13\x04\0\x19[method]node.remove-child\x01\x13\x01k\x0b\x01@\x01\x04self\x0d\0\x14\
\x04\0\x13[method]node.parent\x01\x15\x01@\x01\x04self\x0d\0\x05\x04\0\x16[metho\
d]node.transform\x01\x16\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[metho\
d]node.set-transform\x01\x17\x01i\x01\x01k\x18\x01@\x01\x04self\x0d\0\x19\x04\0\x11\
[method]node.mesh\x01\x1a\x01h\x01\x01k\x1b\x01@\x02\x04self\x0d\x05value\x1c\x01\
\0\x04\0\x15[method]node.set-mesh\x01\x1d\x01i\x07\x01k\x1e\x01@\x01\x04self\x0d\
\0\x1f\x04\0\x15[method]node.collider\x01\x20\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\
/\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]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]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[method]scene.transform\x01\x12\x01@\x02\
\x04self\x09\x05value\x01\x01\0\x04\0\x1b[method]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.set-active\x01\x15\x03\x01\x0funavi:s\
cene/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\x04me\
sh\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}\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]r\
ectangle\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.t\
o-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[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\x05valuev\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[met\
hod]cylinder.resolution\x01\"\x01@\x02\x04self\x1d\x05value}\x01\0\x04\0\x1f[met\
hod]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]c\
ylinder.to-mesh\x01$\x01@\x01\x04self\x1d\0\x19\x04\0\x18[method]cylinder.to-nod\
e\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]c\
uboid.set-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]c\
uboid.to-physics-node\x01,\x01i\x11\x01@\x01\x06radiusv\0-\x04\0\x16[static]sphe\
re.new-ico\x01.\x04\0\x15[static]sphere.new-uv\x01.\x01h\x11\x01@\x01\x04self/\0\
v\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.k\
ind\x012\x01@\x02\x04self/\x05value\x10\x01\0\x04\0\x17[method]sphere.set-kind\x01\
3\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-n\
ode\x015\x03\x01\x10unavi:shapes/api\x05\x13\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\x14\x04\x01\x1aexample:unavi-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";
\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\x16[method]node.transfor\
m\x01\x17\x01@\x02\x04self\x0d\x05value\x05\x01\0\x04\0\x1a[method]node.set-tran\
sform\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";

#[inline(never)]
#[doc(hidden)]
Expand Down
Loading

0 comments on commit 7a7427b

Please sign in to comment.