Skip to main content

batch_gjk_dispatch

Function batch_gjk_dispatch 

Source
pub fn batch_gjk_dispatch(buffer: &GpuCollisionBuffer) -> Vec<GjkResult>
Expand description

Dispatch GJK for a batch of collision pairs (stub implementation).

In a real GPU pipeline, this would launch one thread per pair. Here we use a heuristic based on AABB centre distance as a placeholder.

ยงArguments

  • buffer - Collision buffer with the AABB list and pair list.