lines instead?
This commit is contained in:
parent
82070bda11
commit
bd8fa9cebc
1 changed files with 8 additions and 1 deletions
|
@ -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"),
|
||||
|
|
Loading…
Add table
Reference in a new issue