Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICollisionBroadphase

Definition for collision broadphase

Hierarchy

  • ICollisionBroadphase

Implemented by

Index

Methods

broadphase

  • Detect potential collision pairs

    Parameters

    Returns Pair[]

debugDraw

  • debugDraw(ctx: any, delta: any): void
  • Parameters

    • ctx: any
    • delta: any

    Returns void

narrowphase

  • Identify actual collisions from those pairs, and calculate collision impulse

    Parameters

    Returns any

resolve

  • Resolve the position and velocity of the physics bodies

    Parameters

    Returns any

track

  • track(target: Body): any
  • Track a physics body

    Parameters

    Returns any

untrack

  • untrack(tartet: Body): any
  • Untrack a physics body

    Parameters

    Returns any

update

  • update(targets: Actor[], delta: number): number
  • Update the internal structures to track bodies

    Parameters

    • targets: Actor[]
    • delta: number

    Returns number