Rapier C — 3D / f64 0.36.0+c.0
Loading...
Searching...
No Matches
R3RayHit Struct Reference

Closest ray intersection, with a world-space normal. More...

#include <rapier.h>

Data Fields

struct R3ColliderHandle collider
 World-bound collider handle.
R3Real time_of_impact
 Ray/sweep parameter at first impact, bounded by the query options.
struct R3Vector normal
 World-space contact or surface normal.
uint32_t feature_type
 Shape feature kind: R3_FEATURE_UNKNOWN, R3_FEATURE_VERTEX, R3_FEATURE_EDGE, or R3_FEATURE_FACE.
uint32_t feature_id
 Index within the feature kind; zero for unknown.

Detailed Description

Closest ray intersection, with a world-space normal.

Field Documentation

◆ collider

struct R3ColliderHandle R3RayHit::collider

World-bound collider handle.

◆ feature_id

uint32_t R3RayHit::feature_id

Index within the feature kind; zero for unknown.

◆ feature_type

uint32_t R3RayHit::feature_type

Shape feature kind: R3_FEATURE_UNKNOWN, R3_FEATURE_VERTEX, R3_FEATURE_EDGE, or R3_FEATURE_FACE.

◆ normal

struct R3Vector R3RayHit::normal

World-space contact or surface normal.

◆ time_of_impact

R3Real R3RayHit::time_of_impact

Ray/sweep parameter at first impact, bounded by the query options.


The documentation for this struct was generated from the following file: