Creates a box collider, under the hood defines a PolygonCollider collider
Width of the box
Height of the box
Anchor of the box (default (.5, .5)) which positions the box relative to the center of the collider's position
Optional offset relative to the collider in local coordinates
Creates a new capsule shaped CompositeCollider using 2 circles and a box
Capsule colliders are useful for platformers with incline or jagged floors to have a smooth player experience.
Optional offset
Creates a new circle collider
Circle colliders are useful for balls, or to make collisions more forgiving on sharp edges
Radius of the circle collider
Optional offset relative to the collider in local coordinates
Creates a new edge collider
Edge colliders are useful for floors, walls, and other barriers
Beginning of the edge in local coordinates to the collider
Ending of the edge in local coordinates to the collider
Creates a new arbitrary polygon collider
PolygonColliders are useful for creating convex polygon shapes
Points specified in counter clockwise
Optional offset relative to the collider in local coordinates
Excalibur helper for defining colliders quickly