Interface BallColliderOptions

Configuration object for BallCollider creation

const ballCollider = new BallCollider({
radius: 16,
offset: new Vector2(),
layer: "CollisionLayer",
physics: true,
ignoreCollisionsWithLayer: ["IgnoredLayer"]
});
interface BallColliderOptions {
    ignoreCollisionsWithLayers: string[];
    layer: string;
    offset: Vector2;
    physics: boolean;
    radius: number;
}

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

radius: number

Circumference radius