Skip to content

CollisionLayer

Defined in: packages/engine/src/gameplay/physics/traits.ts:14

The layers the physics world’s colliders stand in, one each: the ground and the map’s edge walls, the scatter hulls, the hero’s capsule, every other walker’s capsule, and the body an Entity’s collider gives it. Two colliders meet only when each lists the other’s layer.

Ground: "ground"

Defined in: packages/engine/src/gameplay/physics/traits.ts:15


Obstacles: "obstacles"

Defined in: packages/engine/src/gameplay/physics/traits.ts:16


Players: "players"

Defined in: packages/engine/src/gameplay/physics/traits.ts:17


Props: "props"

Defined in: packages/engine/src/gameplay/physics/traits.ts:19


Walkers: "walkers"

Defined in: packages/engine/src/gameplay/physics/traits.ts:18