combinedWorldBounds property
Aabb3?
get
combinedWorldBounds
The subtree's axis-aligned bounds in world space, or null when the
subtree is unbounded (combinedLocalBounds is null, e.g. skinned
content or caller-managed geometry).
This is combinedLocalBounds placed into world space with this node's globalTransform, the same bound the renderer frustum-culls against. Handy for framing a camera on a loaded model (see PerspectiveCamera.framing) or sizing an effect to a model's extent, without walking vertices by hand.
Implementation
vm.Aabb3? get combinedWorldBounds {
final bounds = combinedLocalBounds;
if (bounds == null) return null;
return vm.Aabb3.copy(bounds)..transform(globalTransform);
}