Rename AABB get_area to get_volume

This commit is contained in:
Brian Semrau
2021-11-04 21:01:59 -04:00
parent 70c82d9d3d
commit dc11e73bf0
7 changed files with 40 additions and 40 deletions
@@ -171,7 +171,7 @@ void GodotCollisionObject3D::_update_shapes() {
s.aabb_cache = shape_aabb;
Vector3 scale = xform.get_basis().get_scale();
s.area_cache = s.shape->get_area() * scale.x * scale.y * scale.z;
s.area_cache = s.shape->get_volume() * scale.x * scale.y * scale.z;
if (s.bpid == 0) {
s.bpid = space->get_broadphase()->create(this, i, shape_aabb, _static);