Align primitive defaults to default collision shape sizes

This commit is contained in:
BastiaanOlij 2017-06-19 21:40:16 +10:00
parent 0288be1e76
commit bf6f3881a1

View file

@ -359,8 +359,8 @@ int CapsuleMesh::get_rings() const {
CapsuleMesh::CapsuleMesh() { CapsuleMesh::CapsuleMesh() {
// defaults // defaults
radius = 0.5; radius = 1.0;
mid_height = 0.5; mid_height = 1.0;
radial_segments = 64; radial_segments = 64;
rings = 8; rings = 8;
} }
@ -617,7 +617,7 @@ int CubeMesh::get_subdivide_depth() const {
CubeMesh::CubeMesh() { CubeMesh::CubeMesh() {
// defaults // defaults
size = Vector3(1.0, 1.0, 1.0); size = Vector3(2.0, 2.0, 2.0);
subdivide_w = 0; subdivide_w = 0;
subdivide_h = 0; subdivide_h = 0;
subdivide_d = 0; subdivide_d = 0;
@ -834,9 +834,9 @@ int CylinderMesh::get_rings() const {
CylinderMesh::CylinderMesh() { CylinderMesh::CylinderMesh() {
// defaults // defaults
top_radius = 0.5; top_radius = 1.0;
bottom_radius = 0.5; bottom_radius = 1.0;
height = 1.0; height = 2.0;
radial_segments = 64; radial_segments = 64;
rings = 4; rings = 4;
} }
@ -951,7 +951,7 @@ int PlaneMesh::get_subdivide_depth() const {
PlaneMesh::PlaneMesh() { PlaneMesh::PlaneMesh() {
// defaults // defaults
size = Size2(1.0, 1.0); size = Size2(2.0, 2.0);
subdivide_w = 0; subdivide_w = 0;
subdivide_d = 0; subdivide_d = 0;
} }
@ -1242,7 +1242,7 @@ int PrismMesh::get_subdivide_depth() const {
PrismMesh::PrismMesh() { PrismMesh::PrismMesh() {
// defaults // defaults
left_to_right = 0.5; left_to_right = 0.5;
size = Vector3(1.0, 1.0, 1.0); size = Vector3(2.0, 2.0, 2.0);
subdivide_w = 0; subdivide_w = 0;
subdivide_h = 0; subdivide_h = 0;
subdivide_d = 0; subdivide_d = 0;
@ -1446,8 +1446,8 @@ bool SphereMesh::get_is_hemisphere() const {
SphereMesh::SphereMesh() { SphereMesh::SphereMesh() {
// defaults // defaults
radius = 0.5; radius = 1.0;
height = 1.0; height = 2.0;
radial_segments = 64; radial_segments = 64;
rings = 32; rings = 32;
is_hemisphere = false; is_hemisphere = false;