update method

  1. @override
void update()
override

This method can be used if there are things that needs to be prepared in each tick.

Implementation

@override
void update() {
  items.sort((a, b) => a.aabb.min.x.compareTo(b.aabb.min.x));
}