Options
All
  • Public
  • Public/Protected
  • All
Menu

A collision collider specifies the geometry that can detect when other collision colliders intersect for the purposes of colliding 2 objects in excalibur.

Hierarchy

Implements

Index

Constructors

constructor

Properties

events

events: EventDispatcher<Collider> = ...

Readonly id

id: Id<"collider"> = ...

offset

offset: Vector

Pixel offset of the collision collider relative to the collider, by default (0, 0) meaning the collider is positioned on top of the collider.

owner

owner: Entity

Accessors

Abstract axes

Abstract bounds

Abstract center

Abstract localBounds

Abstract worldPos

Methods

Abstract clone

Abstract collide

Abstract contains

  • contains(point: Vector): boolean

Abstract debug

Abstract debugDraw

  • debugDraw(ctx: CanvasRenderingContext2D, color: Color): void

Abstract draw

  • draw(ctx: CanvasRenderingContext2D, color?: Color, pos?: Vector): void

Abstract getClosestLineBetween

Abstract getFurthestPoint

Abstract getInertia

  • getInertia(mass: number): number

Abstract project

Abstract rayCast

touching

Abstract update