summaryrefslogtreecommitdiffstats
path: root/scene/2d/ray_cast_2d.h
diff options
context:
space:
mode:
authorKarol Walasek <coreconviction@gmail.com>2016-08-09 19:52:15 +0200
committerKarol Walasek <coreconviction@gmail.com>2016-10-03 12:36:16 +0200
commit7494a8c3c6738ae212cc9ec62eb478056b846e3d (patch)
treecca6e93f598f5b5a0f579e867d1435809ba1d2d0 /scene/2d/ray_cast_2d.h
parent1d2743302f8e118011e5fe51fbc7bf310acb30d4 (diff)
downloadredot-engine-7494a8c3c6738ae212cc9ec62eb478056b846e3d.tar.gz
Added force_raycast_update GDScript method for RayCast[2D]
Diffstat (limited to 'scene/2d/ray_cast_2d.h')
-rw-r--r--scene/2d/ray_cast_2d.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/ray_cast_2d.h b/scene/2d/ray_cast_2d.h
index e1caa8b63e..9bdcc2e199 100644
--- a/scene/2d/ray_cast_2d.h
+++ b/scene/2d/ray_cast_2d.h
@@ -52,6 +52,7 @@ class RayCast2D : public Node2D {
protected:
void _notification(int p_what);
+ void _update_raycast_state();
static void _bind_methods();
public:
@@ -70,6 +71,8 @@ public:
void set_exclude_parent_body(bool p_exclude_parent_body);
bool get_exclude_parent_body() const;
+ void force_raycast_update();
+
bool is_colliding() const;
Object *get_collider() const;
int get_collider_shape() const;