summaryrefslogtreecommitdiffstats
path: root/scene/resources/segment_shape_2d.h
diff options
context:
space:
mode:
authorAndrea Catania <info@andreacatania.com>2018-02-19 20:59:57 +0100
committerAndrea Catania <info@andreacatania.com>2018-02-19 20:59:57 +0100
commitffc3ef86778f486823bedf66cc5a937fc09abe6a (patch)
tree15581f9cc2b0fedbacf20dbf989700682f6661c0 /scene/resources/segment_shape_2d.h
parentcbdd410a6f476503ee4bc27ac2f475a73960236d (diff)
downloadredot-engine-ffc3ef86778f486823bedf66cc5a937fc09abe6a.tar.gz
Improved ray shape (2D and 3D) by addiing the possibility to act as regular shape
Diffstat (limited to 'scene/resources/segment_shape_2d.h')
-rw-r--r--scene/resources/segment_shape_2d.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/resources/segment_shape_2d.h b/scene/resources/segment_shape_2d.h
index 4ed30c0443..700982ac0a 100644
--- a/scene/resources/segment_shape_2d.h
+++ b/scene/resources/segment_shape_2d.h
@@ -63,6 +63,7 @@ class RayShape2D : public Shape2D {
GDCLASS(RayShape2D, Shape2D);
real_t length;
+ bool slips_on_slope;
void _update_shape();
@@ -72,6 +73,10 @@ protected:
public:
void set_length(real_t p_length);
real_t get_length() const;
+
+ void set_slips_on_slope(bool p_active);
+ bool get_slips_on_slope() const;
+
virtual void draw(const RID &p_to_rid, const Color &p_color);
virtual Rect2 get_rect() const;