12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef CYLINDER_SHAPE_H
- #define CYLINDER_SHAPE_H
- #include "scene/resources/shape.h"
- class CylinderShape : public Shape {
- GDCLASS(CylinderShape, Shape);
- float radius;
- float height;
- protected:
- static void _bind_methods();
- virtual void _update_shape();
- virtual Vector<Vector3> _gen_debug_mesh_lines();
- public:
- void set_radius(float p_radius);
- float get_radius() const;
- void set_height(float p_height);
- float get_height() const;
- CylinderShape();
- };
- #endif
|