calculateWorldAABB method

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

@todo use abstract for these kind of methods

Implementation

@override
void calculateWorldAABB(Vec3 pos,Quaternion quat,Vec3 min,Vec3 max) {
  double r = radius;
  min.x = pos.x - r;
  max.x = pos.x + r;

  min.y = pos.y - r;
  max.y = pos.y + r;

  min.z = pos.z - r;
  max.z = pos.z + r;
}