Function: detectCollision()
detectCollision(
bodyA,bodyB):CollisionManifold|null
Defined in: physics/collision/detect-collision.ts:57
Detects a collision between two RigidBody instances, dispatching to the appropriate narrow-phase detector based on each body's shape type.
Parameters
bodyA
The first body.
bodyB
The second body.
Returns
CollisionManifold | null
A CollisionManifold if the bodies overlap, otherwise
null.
Throws
An error if no detector is registered for the bodies' shape pair.