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 hx = Primitive3D.size(width) / 2,
      hy = Primitive3D.size(height) / 2,
      hz = Primitive3D.size(depth) / 2;
  out.setValues(-hx, -hy, -hz, hx, hy, hz);
}