remove XrSpatialTransform in favor of making XrSpace a Component and adding XrSpatialOffset

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2024-06-23 00:07:28 +02:00
parent 6003cc7ac6
commit b7c4a05482
5 changed files with 47 additions and 34 deletions

View File

@@ -45,7 +45,7 @@ impl ToTransform for openxr::Posef {
impl ToXrPose for openxr::Posef {
fn to_xr_pose(&self) -> XrPose {
XrPose {
position: self.position.to_vec3(),
translation: self.position.to_vec3(),
rotation: self.orientation.to_quat(),
}
}
@@ -54,7 +54,7 @@ impl ToPosef for XrPose {
fn to_posef(&self) -> openxr::Posef {
openxr::Posef {
orientation: self.rotation.to_quaternionf(),
position: self.position.to_vector3f(),
position: self.translation.to_vector3f(),
}
}
}