feat: add XrSessionDestroyedEvent to allow crate consumers to react to the destruction to, for example, start another session

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-02-10 03:24:39 +01:00
parent 23da8847f1
commit 010c1d8e16
3 changed files with 35 additions and 9 deletions

View File

@@ -139,7 +139,7 @@ fn handle_flight_input(
let view = views.first();
match view {
Some(v) => {
let reference_quat = root_position.rotation.inverse() * v.pose.orientation.to_quat();
let reference_quat = root_position.rotation * v.pose.orientation.to_quat();
let locomotion_vector = reference_quat.mul_vec3(input_vector);
root_position.translation +=