Initialize variables in servers/physics
This commit is contained in:
parent
7b21b1bb60
commit
91257c3900
53 changed files with 362 additions and 624 deletions
|
|
@ -101,11 +101,6 @@ const Map<ShapeOwner3DSW *, int> &Shape3DSW::get_owners() const {
|
|||
return owners;
|
||||
}
|
||||
|
||||
Shape3DSW::Shape3DSW() {
|
||||
custom_bias = 0;
|
||||
configured = false;
|
||||
}
|
||||
|
||||
Shape3DSW::~Shape3DSW() {
|
||||
ERR_FAIL_COND(owners.size());
|
||||
}
|
||||
|
|
@ -244,10 +239,7 @@ Variant SeparationRayShape3DSW::get_data() const {
|
|||
return d;
|
||||
}
|
||||
|
||||
SeparationRayShape3DSW::SeparationRayShape3DSW() {
|
||||
length = 1;
|
||||
slide_on_slope = false;
|
||||
}
|
||||
SeparationRayShape3DSW::SeparationRayShape3DSW() {}
|
||||
|
||||
/********** SPHERE *************/
|
||||
|
||||
|
|
@ -311,9 +303,7 @@ Variant SphereShape3DSW::get_data() const {
|
|||
return radius;
|
||||
}
|
||||
|
||||
SphereShape3DSW::SphereShape3DSW() {
|
||||
radius = 0;
|
||||
}
|
||||
SphereShape3DSW::SphereShape3DSW() {}
|
||||
|
||||
/********** BOX *************/
|
||||
|
||||
|
|
@ -502,8 +492,7 @@ Variant BoxShape3DSW::get_data() const {
|
|||
return half_extents;
|
||||
}
|
||||
|
||||
BoxShape3DSW::BoxShape3DSW() {
|
||||
}
|
||||
BoxShape3DSW::BoxShape3DSW() {}
|
||||
|
||||
/********** CAPSULE *************/
|
||||
|
||||
|
|
@ -668,9 +657,7 @@ Variant CapsuleShape3DSW::get_data() const {
|
|||
return d;
|
||||
}
|
||||
|
||||
CapsuleShape3DSW::CapsuleShape3DSW() {
|
||||
height = radius = 0;
|
||||
}
|
||||
CapsuleShape3DSW::CapsuleShape3DSW() {}
|
||||
|
||||
/********** CYLINDER *************/
|
||||
|
||||
|
|
@ -848,9 +835,7 @@ Variant CylinderShape3DSW::get_data() const {
|
|||
return d;
|
||||
}
|
||||
|
||||
CylinderShape3DSW::CylinderShape3DSW() {
|
||||
height = radius = 0;
|
||||
}
|
||||
CylinderShape3DSW::CylinderShape3DSW() {}
|
||||
|
||||
/********** CONVEX POLYGON *************/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue