diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-03 15:19:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 15:19:30 +0200 |
commit | 8aa791d166621014d2b0534e1d448427d4ec260f (patch) | |
tree | b730bebeda8bead815081f5a4eca791328ff6934 /scene/resources/primitive_meshes.h | |
parent | 6530d46d67a1f31461b71632f0795ce355cd0ca5 (diff) | |
parent | 53b8899be9d79f6b16923e930784d5001532fa15 (diff) |
Merge pull request #59321 from Calinou/primitive-meshes-csg-tweak-default-sizes
Decrease default sizes of some primitive and CSG meshes for consistency
Diffstat (limited to 'scene/resources/primitive_meshes.h')
-rw-r--r-- | scene/resources/primitive_meshes.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/resources/primitive_meshes.h b/scene/resources/primitive_meshes.h index 8cd05c1740..6b0d5993a1 100644 --- a/scene/resources/primitive_meshes.h +++ b/scene/resources/primitive_meshes.h @@ -247,7 +247,7 @@ class PrismMesh : public PrimitiveMesh { private: float left_to_right = 0.5; - Vector3 size = Vector3(2.0, 2.0, 2.0); + Vector3 size = Vector3(1.0, 1.0, 1.0); int subdivide_w = 0; int subdivide_h = 0; int subdivide_d = 0; @@ -309,8 +309,8 @@ class SphereMesh : public PrimitiveMesh { GDCLASS(SphereMesh, PrimitiveMesh); private: - float radius = 1.0; - float height = 2.0; + float radius = 0.5; + float height = 1.0; int radial_segments = 64; int rings = 32; bool is_hemisphere = false; @@ -358,7 +358,7 @@ class TubeTrailMesh : public PrimitiveMesh { GDCLASS(TubeTrailMesh, PrimitiveMesh); private: - float radius = 1.0; + float radius = 0.5; int radial_steps = 8; int sections = 5; float section_length = 0.2; |