Circumference shaped collider for 2d collisions.
const ballCollider = new BallCollider({ radius: 16, offset: new Vector2(), layer: "CollisionLayer", physics: true, ignoreCollisionsWithLayer: ["IgnoredLayer"]}); Copy
const ballCollider = new BallCollider({ radius: 16, offset: new Vector2(), layer: "CollisionLayer", physics: true, ignoreCollisionsWithLayer: ["IgnoredLayer"]});
Optional
Ignores collisions with layers in the array
Collision layer
X-Y axis offset
TRUE if this collider interact with rigid bodies
Circumference radius
Circumference shaped collider for 2d collisions.
Example