feat: update stardust-xr

This commit is contained in:
Nova
2022-12-17 02:29:32 -05:00
parent 89f4aae1ff
commit 769fa24c1d
6 changed files with 18 additions and 18 deletions

View File

@@ -54,13 +54,10 @@ impl MousePointer {
if let Some(ray) = SkRay::from_mouse(mouse) {
self.spatial.set_local_transform_components(
None,
Transform {
position: Some(ray.pos),
rotation: Some(
glam::Quat::from_rotation_arc(vec3(0.0, 0.0, 1.0), ray.dir.into()).into(),
),
scale: None,
},
Transform::from_position_rotation(
ray.pos,
glam::Quat::from_rotation_arc(vec3(0.0, 0.0, 1.0), ray.dir.into()),
),
);
}
{

View File

@@ -30,11 +30,10 @@ impl SkController {
if *self.tip.enabled.lock() {
self.tip.spatial.set_local_transform_components(
None,
Transform {
position: Some(controller.pose.position),
rotation: Some(controller.pose.orientation),
scale: None,
},
Transform::from_position_rotation(
controller.pose.position,
controller.pose.orientation,
),
);
}
let mut fbb = flexbuffers::Builder::default();