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

-remove Vector2.atan2() replaced by Vector2.angle(), fixes #2260

This commit is contained in:
Juan Linietsky
2015-11-19 10:41:20 -03:00
parent 36d620c633
commit d3eb9e8c54
12 changed files with 16 additions and 16 deletions

View File

@@ -745,7 +745,7 @@ static float _find_closest_angle_to_half_pi_arc(const Vector3& p_from, const Vec
}
//min_p = p_arc_xform.affine_inverse().xform(min_p);
float a = Vector2(min_p.x,-min_p.z).atan2();
float a = Vector2(min_p.x,-min_p.z).angle();
return a*180.0/Math_PI;
}