From bd8fa9cebc59948bf8edf62968fc1237235f7997 Mon Sep 17 00:00:00 2001 From: spatialfree Date: Wed, 10 Apr 2024 06:31:40 -0400 Subject: [PATCH] lines instead? --- src/main.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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"),