diff options
author | Andrea Catania <info@andreacatania.com> | 2018-02-19 20:59:57 +0100 |
---|---|---|
committer | Andrea Catania <info@andreacatania.com> | 2018-02-19 20:59:57 +0100 |
commit | ffc3ef86778f486823bedf66cc5a937fc09abe6a (patch) | |
tree | 15581f9cc2b0fedbacf20dbf989700682f6661c0 /scene/resources/segment_shape_2d.h | |
parent | cbdd410a6f476503ee4bc27ac2f475a73960236d (diff) | |
download | redot-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.h | 5 |
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; |