CF_ToiResult3¶
Category: collision
GitHub: cute_math3d.h
Results of a 3d time of impact calculation from cf_toi3.
| Struct Members | Description |
|---|---|
int hit |
1 if the shapes hit during the sweep, 0 if they never hit. |
float toi |
The time of impact, from 0 to 1. 1 when no hit occurred. |
CF_V3 n |
Surface normal from shape A to B at the time of impact. |
CF_V3 p |
Point of contact at the time of impact. |
int iterations |
Number of iterations the solver underwent. |