Category
The Category type represents one or more categories that an entity can belong to. The primary purpose of categories is to determine which colliders can collide with each other. See the main page on Categories to learn more about how to declare and use categories.
pub tangible category Category:Projectile
pub category Category:AffectedByLava
Spawn projectile {
use body=projectile
use shape=Circle(radius=1)
Body(pos=@(0,0))
PolygonCollider(category = Category:Projectile)
PolygonSprite(color=#ff8800)
}
// Find all entities belong to either the Category:Projectile or Category:AffectedByLava categories
Query(filter = Category:Projectile | Category:AffectedByLava)