Circumference shaped collider for 2d collisions.

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

Implements

Constructors

Properties

ignoreCollisionsWithLayers: string[] = []

Ignores collisions with layers in the array

layer: string = ""

Collision layer

offset: Vector2 = ...

X-Y axis offset

physics: boolean = true

TRUE if this collider interact with rigid bodies

radius: number = 0

Circumference radius