summaryrefslogtreecommitdiffstats
path: root/scene/2d/node_2d.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-11-19 10:41:20 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-11-19 10:41:20 -0300
commitd3eb9e8c54d4a93b2bed90a5988f9814377d409f (patch)
treea8586037e25eb481fb386745bbcd9a63ced46898 /scene/2d/node_2d.cpp
parent36d620c633be55ac402892bce816d4a9b4d67bee (diff)
downloadredot-engine-d3eb9e8c54d4a93b2bed90a5988f9814377d409f.tar.gz
-remove Vector2.atan2() replaced by Vector2.angle(), fixes #2260
Diffstat (limited to 'scene/2d/node_2d.cpp')
-rw-r--r--scene/2d/node_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/node_2d.cpp b/scene/2d/node_2d.cpp
index 6141b6a09e..52b112f090 100644
--- a/scene/2d/node_2d.cpp
+++ b/scene/2d/node_2d.cpp
@@ -354,7 +354,7 @@ void Node2D::look_at(const Vector2& p_pos) {
float Node2D::get_angle_to(const Vector2& p_pos) const {
- return (get_global_transform().affine_inverse().xform(p_pos)).atan2();
+ return (get_global_transform().affine_inverse().xform(p_pos)).angle();
}
void Node2D::_bind_methods() {