only add systems that depend on pbr when the PbrPlugin is added

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-01-17 05:45:01 +01:00
parent 40e9fed513
commit 6d515f3ae9
2 changed files with 5 additions and 10 deletions

View File

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