Skip to content

CF_GjkCache3

Category: collision
GitHub: cute_math3d.h


An opaque warm-start cache for successive cf_gjk3 calls on the same shape pair.

Struct Members Description
float metric A metric used to judge whether the cached simplex is still usable.
uint16_t count The number of cached simplex vertices. Zero-initialize before the first call.
uint8_t iA[4] Cached simplex indices on shape A.
uint8_t iB[4] Cached simplex indices on shape B.

Remarks

Zero-initialize before the first call, then reuse across calls while the shapes move only a little relative to each other.

cf_gjk3