calculateWorldAABB method

  1. @override
void calculateWorldAABB(
  1. Vec3 pos,
  2. Quaternion quat,
  3. Vec3 min,
  4. Vec3 max,
)
override

calculateWorldAABB

Implementation

@override
void calculateWorldAABB(Vec3 pos, Quaternion quat, Vec3 min, Vec3 max) {
  // Faster approximation using local AABB
  final frame = _calculateWorldAABBFrame;
  final result = _calculateWorldAABBAabb;
  frame.position = pos;
  frame.quaternion = quat;
  aabb.toWorldFrame(frame, result);
  min.copy(result.lowerBound);
  max.copy(result.upperBound);
}