shapeWorldAabb function Physics

Aabb3 shapeWorldAabb(
  1. Shape shape,
  2. Matrix4 worldXform
)

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);
}