1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

[Mono] Improve Mathf

(cherry picked from commit 655a4e6540)
This commit is contained in:
Chaosus
2018-04-07 14:54:07 +03:00
committed by Hein-Pieter van Braam
parent 3a430e46b9
commit a29680c25a
3 changed files with 91 additions and 33 deletions

View File

@@ -206,13 +206,13 @@ namespace Godot
}
else
{
euler.x = Mathf.PI * 0.5f;
euler.x = Mathf.Pi * 0.5f;
euler.y = -Mathf.Atan2(-m[0, 1], m[0, 0]);
}
}
else
{
euler.x = -Mathf.PI * 0.5f;
euler.x = -Mathf.Pi * 0.5f;
euler.y = -Mathf.Atan2(-m[0, 1], m[0, 0]);
}