boundsInto method

  1. @override
void boundsInto(
  1. Aabb3 out
)
override

Its bounds in its entity's own space into out.

Implementation

@override
void boundsInto(Aabb3 out) {
  final hy = Primitive3D.size(height) / 2;
  out.setEmpty();
  for (final p in points) {
    out.addXYZ(p.dx, -hy, p.dy);
  }
  if (out.isEmpty) {
    out.setValues(0, -hy, 0, 0, hy, 0);
  } else {
    out.max.y = hy;
  }
}