Options
All
  • Public
  • Public/Protected
  • All
Menu

This is a circle collider for the excalibur rigid body physics simulation

Hierarchy

Index

Constructors

Properties

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

Position of the circle relative to the collider, by default (0, 0).

owner: Entity

Accessors

  • get radius(): number
  • set radius(val: number): void

Methods

  • contains(point: Vector): boolean
  • getInertia(mass: number): number