Configuration object for TilemapCollider creation
const tilemapCollider = new TilemapCollider({ composite: true, offset: new Vector2(), layer: "CollisionLayer", physics: true, ignoreCollisionsWithLayer: ["IgnoredLayer"]}); Copy
const tilemapCollider = new TilemapCollider({ composite: true, offset: new Vector2(), layer: "CollisionLayer", physics: true, ignoreCollisionsWithLayer: ["IgnoredLayer"]});
Generate colliders that represent the outer lines of the tile map
Ignores collisions with layers in the array
Collision layer
X-Y axis offset
TRUE if this collider interact with rigid bodies
Configuration object for TilemapCollider creation
Example