Rename AABB get_area to get_volume
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user