diff --git a/src/main.rs b/src/main.rs index 0c67160..27293c7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,8 @@ use manifest_dir_macros::directory_relative_path; use stardust_xr_fusion::{ - client::Client, core::values::ResourceID, drawable::Model, spatial::Transform + client::Client, core::values::{Color, ResourceID}, drawable::{Line, Model}, spatial::Transform }; +use stardust_xr_molecules::lines; #[tokio::main] async fn main() { @@ -17,6 +18,12 @@ async fn main() { ), ).unwrap(); + lines::make_line_points( + [mint::Vector3 { x: 0.0, y: 0.0, z: 0.0 }, mint::Vector3 { x: 1.0, y: 0.0, z: 0.0 }], + 0.04, + Color::from_hex(0xFF0000FF), + ); + tokio::select! { _ = tokio::signal::ctrl_c() => (), _ = event_loop => panic!("server crashed"),