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

getColliders

  • Get all tracked colliders


    Returns readonly Collider[]

narrowphase

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


    Parameters

    Returns CollisionContact[]

query

  • Query the collision processor for colliders that contain the point


    Parameters

    Returns Collider[]

rayCast

track

  • Track collider in collision processor


    Parameters

    Returns void

untrack

  • Untrack collider in collision processor


    Parameters

    Returns void

update

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


    Parameters

    Returns number