Skip to content
Permalink
Browse files

Normalize rotations

  • Loading branch information...
Manishearth committed May 30, 2019
1 parent 366aa78 commit d044a792f1cc664492f646f9c6eddf427d82413e
Showing with 4 additions and 2 deletions.
  1. +2 −1 components/script/dom/xrspace.rs
  2. +2 −1 components/script/dom/xrtest.rs
@@ -99,7 +99,8 @@ impl XRSpace {
orient[1] as f64,
orient[2] as f64,
orient[3] as f64,
);
)
.normalize();
RigidTransform3D::new(rotation, translation)
}

@@ -56,7 +56,8 @@ impl XRTestMethods for XRTest {
.as_window()
.webvr_thread()
.unwrap()
.send(WebVRMsg::CreateMockDisplay);
.send(WebVRMsg::CreateMockDisplay)
.unwrap();
p.resolve_native(&FakeXRDeviceController::new(&self.global()));

p

0 comments on commit d044a79

Please sign in to comment.
You can’t perform that action at this time.