We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bea5012 commit 038c18eCopy full SHA for 038c18e
lighthouse-protocol/src/input/motion_event.rs
@@ -1,6 +1,6 @@
1
use serde::{Deserialize, Serialize};
2
3
-use crate::Vec3;
+use crate::{Rot3, Vec3};
4
5
use super::EventSource;
6
@@ -14,9 +14,8 @@ pub struct MotionEvent {
14
pub acceleration: Option<Vec3<Option<f64>>>,
15
/// The acceleration in 3D space (including gravity) in m/s^2.
16
pub acceleration_including_gravity: Option<Vec3<Option<f64>>>,
17
-
18
- // TODO: rotation rate
19
+ /// The rotation rate in deg/s on the three rotation axes.
+ pub rotation_rate: Option<Rot3<Option<f64>>>,
20
/// The granularity of these events in ms.
21
pub interval: f64,
22
}
0 commit comments