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

Optional ray collider/time result. More...

#include <rapier.h>

Data Fields

struct R2ColliderHandle collider
 World-bound collider handle.
R2Real toi
 Ray parameter t at impact: origin + direction * t.
R2Bool found
 Whether a result exists; other result fields are meaningful only when this is 1.

Detailed Description

Optional ray collider/time result.

A miss is found = 0 with status OK.

Field Documentation

◆ collider

struct R2ColliderHandle R2RayToi::collider

World-bound collider handle.

◆ found

R2Bool R2RayToi::found

Whether a result exists; other result fields are meaningful only when this is 1.

◆ toi

R2Real R2RayToi::toi

Ray parameter t at impact: origin + direction * t.


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