Configuration object for BallCollider creation
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"]});
Ignores collisions with layers in the array
Collision layer
X-Y axis offset
TRUE if this collider interact with rigid bodies
Circumference radius
Configuration object for BallCollider creation
Example