Normalize rotations

This commit is contained in:
Manish Goregaokar 2019-05-30 14:50:25 -07:00
parent 366aa78e55
commit d044a792f1
2 changed files with 4 additions and 2 deletions

View file

@ -99,7 +99,8 @@ impl XRSpace {
orient[1] as f64,
orient[2] as f64,
orient[3] as f64,
);
)
.normalize();
RigidTransform3D::new(rotation, translation)
}

View file

@ -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