Options
All
  • Public
  • Public/Protected
  • All
Menu

Edge is a single line collider to create collisions with a single line.

Hierarchy

Index

Constructors

Properties

begin: Vector
end: Vector
events: EventDispatcher<Collider> = ...
id: Id<"collider"> = ...
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: Entity

Accessors

Methods

  • contains(): boolean
  • getInertia(mass: number): number
  • getLength(): number