entity-component-system
entity-component-system copied to clipboard
queue removal of components until the end of a system
Don't remove components immediately when .remove() is called, because this breaks for loops that are iterating over searches. Instead wait until the system has finished before performing the removal.