Use Vector3 instead of 3 floats for CSGBox3D dimensions
This commit is contained in:
parent
43c9106806
commit
4da4feed18
5 changed files with 32 additions and 119 deletions
|
|
@ -240,27 +240,19 @@ class CSGBox3D : public CSGPrimitive3D {
|
|||
virtual CSGBrush *_build_brush() override;
|
||||
|
||||
Ref<Material> material;
|
||||
float width;
|
||||
float height;
|
||||
float depth;
|
||||
Vector3 size = Vector3(2, 2, 2);
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
void set_width(const float p_width);
|
||||
float get_width() const;
|
||||
|
||||
void set_height(const float p_height);
|
||||
float get_height() const;
|
||||
|
||||
void set_depth(const float p_depth);
|
||||
float get_depth() const;
|
||||
void set_size(const Vector3 &p_size);
|
||||
Vector3 get_size() const;
|
||||
|
||||
void set_material(const Ref<Material> &p_material);
|
||||
Ref<Material> get_material() const;
|
||||
|
||||
CSGBox3D();
|
||||
CSGBox3D() {}
|
||||
};
|
||||
|
||||
class CSGCylinder3D : public CSGPrimitive3D {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue