update method
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));
}
This method can be used if there are things that needs to be prepared in each tick.
@override
void update() {
items.sort((a, b) => a.aabb.min.x.compareTo(b.aabb.min.x));
}