pub fn gpu_sphere_collision(
spheres: &[Sphere],
pairs: &[(usize, usize)],
) -> Vec<SphereContact>Expand description
Test sphere-sphere collisions for the given pairs (mock GPU narrowphase).
For each pair (i, j) in pairs, tests whether spheres i and j
overlap and, if so, computes a SphereContact.
ยงArguments
spheres- Sphere descriptors, indexed by object id.pairs- Candidate pairs from the broadphase.