|
Rapier C — 2D / f64 0.36.0+c.0
|
Closest ray intersection, with a world-space normal. 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 | normal |
| World-space contact or surface normal. | |
| uint32_t | feature_type |
| Shape feature kind: R2_FEATURE_UNKNOWN, R2_FEATURE_VERTEX, R2_FEATURE_EDGE, or R2_FEATURE_FACE. | |
| uint32_t | feature_id |
| Index within the feature kind; zero for unknown. | |
Closest ray intersection, with a world-space normal.
| struct R2ColliderHandle R2RayHit::collider |
World-bound collider handle.
| uint32_t R2RayHit::feature_id |
Index within the feature kind; zero for unknown.
| uint32_t R2RayHit::feature_type |
Shape feature kind: R2_FEATURE_UNKNOWN, R2_FEATURE_VERTEX, R2_FEATURE_EDGE, or R2_FEATURE_FACE.
| struct R2Vector R2RayHit::normal |
World-space contact or surface normal.
| R2Real R2RayHit::time_of_impact |
Ray/sweep parameter at first impact, bounded by the query options.