Skip to main content

CollisionProcessor

Definition for collision processor

Collision processors are responsible for tracking colliders and identifying contacts between them

Implemented by

Index

Methods

broadphase

  • Detect potential collision pairs given a list of colliders


    Parameters

    Returns Pair[]

debug

narrowphase

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


    Parameters

    Returns CollisionContact[]

update

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


    Parameters

    Returns number