From ba4e86ad794cf56c875cc8ff4eba981c8f3e15d0 Mon Sep 17 00:00:00 2001 From: nik012003 Date: Sat, 25 Feb 2023 00:58:04 +0100 Subject: [PATCH] Updated fusion and molecules --- examples/hexagon_launcher.rs | 2 +- src/protostar.rs | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/hexagon_launcher.rs b/examples/hexagon_launcher.rs index 8a83eef..9b72695 100644 --- a/examples/hexagon_launcher.rs +++ b/examples/hexagon_launcher.rs @@ -6,7 +6,7 @@ use protostar::{ protostar::ProtoStar, xdg::{get_desktop_files, parse_desktop_file, DesktopFile}, }; -use stardust_xr_molecules::fusion::{ +use stardust_xr_fusion::{ client::{Client, FrameInfo, RootHandler}, core::values::Transform, drawable::{Alignment, Bounds, Text, TextFit, TextStyle}, diff --git a/src/protostar.rs b/src/protostar.rs index 157f089..373d3a3 100644 --- a/src/protostar.rs +++ b/src/protostar.rs @@ -3,8 +3,7 @@ use color_eyre::eyre::{eyre, Result}; use glam::Quat; use mint::Vector3; use nix::unistd::setsid; -use stardust_xr_molecules::{ - fusion::{ +use stardust_xr_fusion::{ client::{Client, FrameInfo, RootHandler}, core::values::Transform, drawable::{MaterialParameter, Model, ResourceID}, @@ -12,9 +11,8 @@ use stardust_xr_molecules::{ node::NodeType, spatial::Spatial, startup_settings::StartupSettings, - }, - GrabData, Grabbable, }; +use stardust_xr_molecules::{GrabData, Grabbable}; use std::os::unix::process::CommandExt; use std::process::{Command, Stdio}; use std::{f32::consts::PI, sync::Arc}; @@ -106,7 +104,7 @@ impl ProtoStar { Transform::default(), &field, GrabData { - max_distance: 0.025, + max_distance: 0.01, ..Default::default() }, )?;