Fix yaw calculation.

This commit is contained in:
Nolan Darilek 2022-08-02 16:49:27 -05:00
parent 5f14a90b92
commit 4495174be0

View File

@ -482,7 +482,7 @@ pub trait GlobalTransformExt {
impl GlobalTransformExt for GlobalTransform {
fn yaw(&self) -> Angle {
let forward = self.forward();
let forward = self.right();
Angle::Radians(forward.y.atan2(forward.x))
}