1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #ifndef CAPSULE_SHAPE_H
- #define CAPSULE_SHAPE_H
- #include "scene/resources/shape.h"
- class CapsuleShape : public Shape {
- GDCLASS(CapsuleShape, 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;
- CapsuleShape();
- };
- #endif
|