aabb property

Aabb3 get aabb

The world-space axis-aligned bounding box for this component and all its Component3D children.

Subclasses with geometry (e.g. MeshComponent) override computeLocalAabb to include their own mesh bounds.

Implementation

Aabb3 get aabb {
  if (_aabbDirty) {
    _recomputeAabb();
    _aabbDirty = false;
  }
  return _cachedAabb;
}