lines instead?

This commit is contained in:
ethan merchant 2024-04-10 06:31:40 -04:00
parent 82070bda11
commit bd8fa9cebc

View file

@ -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"),