summaryrefslogtreecommitdiff
path: root/scene/2d/node_2d.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-07-24 22:24:34 +0200
committerGitHub <noreply@github.com>2017-07-24 22:24:34 +0200
commit0a74fb625e55743e32aa0977191d936e94df235c (patch)
tree4e3f6b33ee11917b4fef48a4f0cb527782d8e6b1 /scene/2d/node_2d.h
parente6336a52a89e900201f5b6e784f0dec153229a19 (diff)
parent140f189a65f991d5b44d49ad6b710f7512862d16 (diff)
Merge pull request #9791 from bojidar-bg/6087-add-global-local-conv
Add .to_local/.to_global methods on Node2D and Spatial
Diffstat (limited to 'scene/2d/node_2d.h')
-rw-r--r--scene/2d/node_2d.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/node_2d.h b/scene/2d/node_2d.h
index 65331a4d58..5b3a28d5c3 100644
--- a/scene/2d/node_2d.h
+++ b/scene/2d/node_2d.h
@@ -104,6 +104,9 @@ public:
void look_at(const Vector2 &p_pos);
float get_angle_to(const Vector2 &p_pos) const;
+ Point2 to_local(Point2 p_global) const;
+ Point2 to_global(Point2 p_local) const;
+
void set_z_as_relative(bool p_enabled);
bool is_z_relative() const;