Interface Collider

Interface implemented by the collider components

interface Collider {
    ignoreCollisionsWithLayers: string[];
    layer: string;
    offset: Vector2;
    physics: boolean;
}

Implemented by

Properties

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