1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef CONVEX_POLYGON_SHAPE_H
- #define CONVEX_POLYGON_SHAPE_H
- #include "scene/resources/shape.h"
- class ConvexPolygonShape : public Shape {
- GDCLASS(ConvexPolygonShape, Shape);
- PoolVector<Vector3> points;
- protected:
- static void _bind_methods();
- virtual void _update_shape();
- virtual Vector<Vector3> _gen_debug_mesh_lines();
- public:
- void set_points(const PoolVector<Vector3> &p_points);
- PoolVector<Vector3> get_points() const;
- ConvexPolygonShape();
- };
- #endif
|