Skip to main content

Module collision_gpu

Module collision_gpu 

Source
Expand description

Auto-generated module structure

Structs§

AabbGpu
Axis-aligned bounding box for GPU collision passes.
BroadphaseGpuKernel
Broadphase collision detection kernel (CPU mock of a GPU dispatch).
BvhNodeGpu
A single BVH node in GPU-friendly flat representation.
CollisionGpuPipeline
Combined broadphase + narrowphase collision pipeline.
CollisionKernelStats
Statistics for a single collision kernel dispatch.
CollisionPair
A pair of primitive indices that may be in contact.
ContactCacheEntry
A single entry in the contact cache for warmstarting.
ContactResult
Contact information produced by the narrowphase kernel.
GjkResult
Result of a GJK distance query.
GpuAabbTree
Flat AABB tree (BVH) built with parallel bottom-up Morton-code construction.
GpuBroadphase
GPU-accelerated broadphase using Sort-and-Sweep (SAP).
GpuBvhBuilder
Builds a flat BVH from a list of AABBs using Morton-code sorting.
GpuCollisionPipeline
Full GPU collision pipeline: broadphase (SAP) + narrowphase (GJK) + persistent contact cache with warmstarting.
GpuContactCache
Persistent contact cache for GPU broadphase/narrowphase warmstarting.
GpuNarrowphase
GPU narrowphase kernel performing parallel GJK distance queries.
ManifoldPoint
A single contact point in the manifold.
NarrowphaseGpuKernel
Narrowphase collision detection kernel (CPU mock with simplified GJK/SAT).
PersistentManifoldGpu
Persistent 4-point contact manifold with warm-start impulse data.

Functions§

morton_code
Compute a 30-bit Morton code for a normalised 3-D position (x, y, z), where each component is in [0, 1].