Rapier C — 2D / f32 0.36.0+c.0
Loading...
Searching...
No Matches
R2RayHit Struct Reference

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.

Detailed Description

Closest ray intersection, with a world-space normal.

Field Documentation

◆ collider

struct R2ColliderHandle R2RayHit::collider

World-bound collider handle.

◆ feature_id

uint32_t R2RayHit::feature_id

Index within the feature kind; zero for unknown.

◆ feature_type

uint32_t R2RayHit::feature_type

Shape feature kind: R2_FEATURE_UNKNOWN, R2_FEATURE_VERTEX, R2_FEATURE_EDGE, or R2_FEATURE_FACE.

◆ normal

struct R2Vector R2RayHit::normal

World-space contact or surface normal.

◆ time_of_impact

R2Real R2RayHit::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: