summaryrefslogtreecommitdiff
path: root/scene/3d/ray_cast.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/ray_cast.h')
-rw-r--r--scene/3d/ray_cast.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/3d/ray_cast.h b/scene/3d/ray_cast.h
index 20cea80700..417cb884cc 100644
--- a/scene/3d/ray_cast.h
+++ b/scene/3d/ray_cast.h
@@ -45,6 +45,8 @@ class RayCast : public Spatial {
Vector3 collision_normal;
Vector3 cast_to;
+ bool collide_with_bodies;
+ bool collide_with_areas;
Set<RID> exclude;
@@ -70,6 +72,12 @@ public:
void set_cast_to(const Vector3 &p_point);
Vector3 get_cast_to() const;
+ void set_collide_with_bodies(bool p_enable);
+ bool get_collide_with_bodies() const;
+
+ void set_collide_with_areas(bool p_enable);
+ bool get_collide_with_areas() const;
+
void set_collision_mask(uint32_t p_mask);
uint32_t get_collision_mask() const;