Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICollidable

Interface all collidable objects must implement

Hierarchy

  • ICollidable

Implemented by

Index

Methods

collides

  • Test whether this bounding box collides with another one.

    Parameters

    Returns Vector

    Vector The intersection vector that can be used to resolve the collision. If there is no collision, null is returned.

contains

  • contains(point: Vector): boolean
  • Tests wether a point is contained within the collidable

    Parameters

    • point: Vector

      The point to test

    Returns boolean

debugDraw

  • debugDraw(ctx: CanvasRenderingContext2D): void
  • Parameters

    • ctx: CanvasRenderingContext2D

    Returns void