chore: update stardust crates
Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
709
Cargo.lock
generated
709
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -104,7 +104,7 @@ impl Reify for HexagonLauncher {
|
||||
)
|
||||
.field_transform(Transform::from_rotation(Quat::from_rotation_x(FRAC_PI_2)))
|
||||
.pointer_mode(PointerMode::Align)
|
||||
.zoneable(false)
|
||||
.reparentable(true)
|
||||
.build()
|
||||
.child(
|
||||
Button::new(|state: &mut HexagonLauncher| {
|
||||
|
||||
@@ -46,7 +46,7 @@ impl Application {
|
||||
}
|
||||
|
||||
pub fn launch<T: SpatialRefAspect + Clone>(&self, launch_space: &T) -> NodeResult<()> {
|
||||
let client = launch_space.node().client()?;
|
||||
let client = launch_space.client().clone();
|
||||
let launch_space = launch_space.clone();
|
||||
|
||||
let executable = self
|
||||
|
||||
@@ -132,6 +132,7 @@ impl Reify for App {
|
||||
.field_transform(Transform::from_rotation(Quat::from_rotation_x(FRAC_PI_2)))
|
||||
.pointer_mode(PointerMode::Align)
|
||||
.max_distance(0.05)
|
||||
.reparentable(false)
|
||||
.build()
|
||||
.child(self.create_model())
|
||||
.children(self.launched.load(Ordering::Relaxed).then(|| {
|
||||
|
||||
@@ -29,7 +29,7 @@ impl<State: ValidState> CustomElement<State> for AppLauncher<State> {
|
||||
_resource: &mut Self::Resource,
|
||||
) -> Result<Self::Inner, Self::Error> {
|
||||
let spatial = Spatial::create(
|
||||
info.parent_space.client()?.get_root(),
|
||||
info.parent_space.client().get_root(),
|
||||
Transform::identity(),
|
||||
false,
|
||||
)?;
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
use stardust_xr_asteroids::{
|
||||
client, elements::{Button, Grabbable, Model, ModelPart, PointerMode, Spatial}, ClientState, CustomElement, Element, Identifiable as _, Migrate, Reify, Transformable
|
||||
};
|
||||
use clap::Parser;
|
||||
use glam::Quat;
|
||||
use mint::{Quaternion, Vector3};
|
||||
use protostar::xdg::DesktopFile;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use single::{App, BTN_COLOR, BTN_SELECTED_COLOR};
|
||||
use stardust_xr_asteroids::{
|
||||
ClientState, CustomElement, Element, Migrate, Reify, Transformable, client,
|
||||
elements::{Button, Grabbable, Model, ModelPart, PointerMode, Spatial},
|
||||
};
|
||||
use stardust_xr_fusion::{
|
||||
drawable::MaterialParameter, fields::Shape, project_local_resources, spatial::Transform,
|
||||
};
|
||||
@@ -105,7 +106,7 @@ impl Reify for Sirius {
|
||||
},
|
||||
)
|
||||
.pointer_mode(PointerMode::Align)
|
||||
.zoneable(false)
|
||||
.reparentable(true)
|
||||
.build()
|
||||
.child(
|
||||
Button::new(|state: &mut Sirius| {
|
||||
@@ -138,15 +139,9 @@ impl Reify for Sirius {
|
||||
false => starpos = (starpos - 0.1) / 2.0,
|
||||
}
|
||||
|
||||
Spatial::default()
|
||||
.pos([starpos, 0.1, 0.0])
|
||||
.build()
|
||||
.identify(&app.app.name())
|
||||
.child(
|
||||
app.reify_substate(move |state: &mut Sirius| {
|
||||
state.apps.get_mut(pos)
|
||||
}),
|
||||
)
|
||||
Spatial::default().pos([starpos, 0.1, 0.0]).build().child(
|
||||
app.reify_substate(move |state: &mut Sirius| state.apps.get_mut(pos)),
|
||||
)
|
||||
})
|
||||
})
|
||||
.into_iter()
|
||||
|
||||
Reference in New Issue
Block a user