Polygon collider for detecting collisions

Hierarchy

Constructors

Properties

events: EventDispatcher<Collider> = ...
id: Id<"collider"> = ...
offset: Vector

Pixel offset relative to a collider's body transform position.

owner: Entity

Accessors

  • get points(): Vector[]
  • Points in the polygon in order around the perimeter in local coordinates. These are relative from the body transform position. Excalibur stores these in counter-clockwise order

    Returns Vector[]

  • set points(points: Vector[]): void
  • Points in the polygon in order around the perimeter in local coordinates. These are relative from the body transform position. Excalibur stores these in counter-clockwise order

    Parameters

    Returns void

Methods