Skip to main content

Module gpu_collision_ext

Module gpu_collision_ext 

Source
Expand description

GPU collision detection extensions (CPU mock backend).

Provides additional broadphase and narrowphase utilities that complement gpu_collision_detection:

  • GpuBroadphaseGrid: uniform-grid broadphase
  • GpuContactManifold: contact point storage
  • Free functions: AABB overlap, sphere overlap, point containment, ray-AABB / ray-sphere intersection, GJK distance estimate.

Structs§

GpuBroadphaseGrid
A uniform-grid broadphase accelerator.
GpuContactManifold
Contact manifold between two rigid bodies.

Functions§

gpu_aabb_overlap
Test whether two axis-aligned bounding boxes overlap.
gpu_gjk_distance
Estimate the minimum distance between two convex hulls using a simplified GJK approach (brute-force vertex-pair minimum for the mock GPU backend).
gpu_point_in_aabb
Test whether point p is inside (or on the boundary of) the AABB.
gpu_ray_aabb_intersect
Intersect a ray with an AABB using the slab method.
gpu_ray_sphere_intersect
Intersect a ray with a sphere.
gpu_sphere_sphere_overlap
Test whether two spheres overlap (or touch).