feat: update stardust-xr
This commit is contained in:
@@ -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()),
|
||||
),
|
||||
);
|
||||
}
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user