1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef RAY_SHAPE_H
- #define RAY_SHAPE_H
- #include "scene/resources/shape.h"
- class RayShape : public Shape {
- GDCLASS(RayShape, Shape);
- float length;
- bool slips_on_slope;
- protected:
- static void _bind_methods();
- virtual void _update_shape();
- virtual Vector<Vector3> _gen_debug_mesh_lines();
- public:
- void set_length(float p_length);
- float get_length() const;
- void set_slips_on_slope(bool p_active);
- bool get_slips_on_slope() const;
- RayShape();
- };
- #endif
|