summaryrefslogtreecommitdiffstats
path: root/scene/3d/ray_cast.h
diff options
context:
space:
mode:
authorMarco Masselli <masso912@gmail.com>2017-11-30 04:26:13 +0100
committerMarco Masselli <masso912@gmail.com>2017-11-30 20:01:19 +0100
commit4bd4d13570b0a6877f901c31619fdff4689fd070 (patch)
tree7e299823c92fd063801615ab3628ca00c5e0df6e /scene/3d/ray_cast.h
parent9678231b109c333a5273325c8758241310cd27f4 (diff)
downloadredot-engine-4bd4d13570b0a6877f901c31619fdff4689fd070.tar.gz
Ported 'Exclude Parent' from Raycast2D to Raycast
Diffstat (limited to 'scene/3d/ray_cast.h')
-rw-r--r--scene/3d/ray_cast.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/3d/ray_cast.h b/scene/3d/ray_cast.h
index ca94580271..9fb1a1be67 100644
--- a/scene/3d/ray_cast.h
+++ b/scene/3d/ray_cast.h
@@ -48,6 +48,7 @@ class RayCast : public Spatial {
Set<RID> exclude;
uint32_t collision_mask;
+ bool exclude_parent_body;
Node *debug_shape;
Ref<Material> debug_material;
@@ -74,6 +75,9 @@ public:
void set_collision_mask_bit(int p_bit, bool p_value);
bool get_collision_mask_bit(int p_bit) const;
+ 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;