CollisionProcessor
Implemented by
Index
Methods
broadphase
Detect potential collision pairs given a list of colliders
Parameters
targets: Collider[]
elapsedMs: number
optionalstats: FrameStats
Returns Pair[]
debug
Draw any debug information
Parameters
ex: ExcaliburGraphicsContext
elapsedMs: number
Returns void
getColliders
Get all tracked colliders
Returns readonly Collider[]
narrowphase
Identify actual collisions from those pairs, and calculate collision impulse
Parameters
pairs: Pair[]
optionalstats: FrameStats
Returns CollisionContact[]
query
rayCast
Parameters
ray: Ray
optionaloptions: RayCastOptions
Returns RayCastHit[]
track
Track collider in collision processor
Parameters
target: Collider
Returns void
untrack
Untrack collider in collision processor
Parameters
target: Collider
Returns void
update
Update the internal structures to track colliders
Parameters
targets: Collider[]
elapsedMs: number
Returns number
Definition for collision processor
Collision processors are responsible for tracking colliders and identifying contacts between them