Interface TilemapColliderOptions

Configuration object for TilemapCollider creation

const tilemapCollider = new TilemapCollider({
composite: true,
offset: new Vector2(),
layer: "CollisionLayer",
physics: true,
ignoreCollisionsWithLayer: ["IgnoredLayer"]
});
interface TilemapColliderOptions {
    composite: boolean;
    ignoreCollisionsWithLayers: string[];
    layer: string;
    offset: Vector2;
    physics: boolean;
}

Properties

composite: boolean

Generate colliders that represent the outer lines of the tile map

ignoreCollisionsWithLayers: string[]

Ignores collisions with layers in the array

layer: string

Collision layer

offset: Vector2

X-Y axis offset

physics: boolean

TRUE if this collider interact with rigid bodies