mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Normalize rotations
This commit is contained in:
parent
366aa78e55
commit
d044a792f1
2 changed files with 4 additions and 2 deletions
|
@ -99,7 +99,8 @@ impl XRSpace {
|
||||||
orient[1] as f64,
|
orient[1] as f64,
|
||||||
orient[2] as f64,
|
orient[2] as f64,
|
||||||
orient[3] as f64,
|
orient[3] as f64,
|
||||||
);
|
)
|
||||||
|
.normalize();
|
||||||
RigidTransform3D::new(rotation, translation)
|
RigidTransform3D::new(rotation, translation)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,8 @@ impl XRTestMethods for XRTest {
|
||||||
.as_window()
|
.as_window()
|
||||||
.webvr_thread()
|
.webvr_thread()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.send(WebVRMsg::CreateMockDisplay);
|
.send(WebVRMsg::CreateMockDisplay)
|
||||||
|
.unwrap();
|
||||||
p.resolve_native(&FakeXRDeviceController::new(&self.global()));
|
p.resolve_native(&FakeXRDeviceController::new(&self.global()));
|
||||||
|
|
||||||
p
|
p
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue