DarkAI

CONTAINERS

Containers divide the system into separate areas which do not interact with each other. By default a single container (0) is created to represent the entire system, but you may create new containers to add to it.

Containers can be used to represent different floors each with their own set of obstacles and entities, such that an entity can occupy the same X and Z positions as an entity from another container but they will not interfere with each other. Entities can be moved between containers manually by detecting when an entity has moved into another container and setting it to the new container.

Path finding also occurs only within the container it is started from, allowing it to detect impossible paths sooner if containers are kept small, and also preventing an entity from leaving its container automatically.