Options
All
  • Public
  • Public/Protected
  • All
Menu

Polygon collider for detecting collisions

Hierarchy

Index

Constructors

Properties

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

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

owner: Entity

Accessors

  • 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[]

  • 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

  • contains(point: Vector): boolean
  • getInertia(mass: number): number
  • getTransformedPoints(): Vector[]
  • isConvex(): boolean