|
Rapier C — 2D / f32 0.36.0+c.0
|
Shape-cast impact geometry; collider-side data is world-space, moving-shape data is local. More...
#include <rapier.h>
Data Fields | |
| struct R2ColliderHandle | collider |
| World-bound collider handle. | |
| R2Real | time_of_impact |
| Ray/sweep parameter at first impact, bounded by the query options. | |
| struct R2Vector | witness1 |
| Impact witness on the collider, in world coordinates. | |
| struct R2Vector | witness2 |
| Impact witness on the moving shape, in its local coordinates. | |
| struct R2Vector | normal1 |
| Impact normal on the collider, in world coordinates. | |
| struct R2Vector | normal2 |
| Impact normal on the moving shape, in its local coordinates. | |
| uint32_t | status |
| Native result: 0 out of iterations, 1 converged, 2 failed, 3 penetrating or within target distance. | |
Shape-cast impact geometry; collider-side data is world-space, moving-shape data is local.
| struct R2ColliderHandle R2ShapeCastHit::collider |
World-bound collider handle.
| struct R2Vector R2ShapeCastHit::normal1 |
Impact normal on the collider, in world coordinates.
| struct R2Vector R2ShapeCastHit::normal2 |
Impact normal on the moving shape, in its local coordinates.
| uint32_t R2ShapeCastHit::status |
Native result: 0 out of iterations, 1 converged, 2 failed, 3 penetrating or within target distance.
| R2Real R2ShapeCastHit::time_of_impact |
Ray/sweep parameter at first impact, bounded by the query options.
| struct R2Vector R2ShapeCastHit::witness1 |
Impact witness on the collider, in world coordinates.
| struct R2Vector R2ShapeCastHit::witness2 |
Impact witness on the moving shape, in its local coordinates.