jetlag2d
    Preparing search index...

    Class ActorPoolSystem

    ActorPool stores a bunch of actors. We can get into trouble in Box2d if we make too many single-use actors, so the ActorPool is a useful mechanism for recycling / reusing actors.

    Index
    • Return an actor from the pool, if there is one available. The actor is likely to be disabled.

      Note that this can return undefined. If you don't want that behavior, consider adding more actors to the pool.

      Returns Actor<unknown> | undefined