fix viewpoint rotation

This commit is contained in:
IsseW 2022-08-12 11:12:19 +02:00
parent 689376ec70
commit 9b7a67c80e

View File

@ -562,7 +562,7 @@ impl Scene {
let yaw = siny_cosp.atan2(cosy_cosp);
self.camera
.set_orientation_instant(Vec3::new(yaw, pitch, -roll));
.set_orientation_instant(Vec3::new(-yaw, pitch, roll));
}
// Alter camera position to match player.