Configuration object for BoxCollider creation
const boxCollider = new BoxCollider({ width: 16, height: 16, rotation: 0, offset: new Vector2(), layer: "CollisionLayer", physics: true, ignoreCollisionsWithLayer: ["IgnoredLayer"]}); Copy
const boxCollider = new BoxCollider({ width: 16, height: 16, rotation: 0, offset: new Vector2(), layer: "CollisionLayer", physics: true, ignoreCollisionsWithLayer: ["IgnoredLayer"]});
Height of the rectangle
Ignores collisions with layers in the array
Collision layer
X-Y axis offset
TRUE if this collider interact with rigid bodies
Rectangle rotation in radians
Width of the rectangle
Configuration object for BoxCollider creation
Example