ape-ecs
ape-ecs copied to clipboard
Query many-to-many relationships
"My use case for many-to-many relationships is tracking, say, visibility between multiple entities. There's a bunch of entities with Sight and a partially overlapping set with Presence, and I want to update a Perception relation when entities get added to or removed from these queries, or when their position changes. Plus easily access related perception results from either end (the relation is not necessarily symmetric)."