shapeWorldAabb function Physics
World-space AABB enclosing shape under worldXform.
Assumes worldXform is a rigid transform (rotation plus
translation, no scale). Scale is not supported by the basic backend.
Implementation
Aabb3 shapeWorldAabb(Shape shape, Matrix4 worldXform) {
final local = _shapeLocalAabb(shape);
return _transformAabb(local, worldXform);
}