playrho::d2::RayCastHit Struct Reference
Ray-cast hit data. More...
#include <RayCastOutput.hpp>
Public Attributes | |
UnitVec | normal |
Surface normal in world coordinates at the point of contact. More... | |
UnitInterval< Real > | fraction = UnitInterval<Real>{0} |
Fraction. More... | |
Detailed Description
Ray-cast hit data.
The ray hits at p1 + fraction * (p2 - p1)
, where p1
and p2
come from RayCastInput
.
Definition at line 73 of file RayCastOutput.hpp.
Member Data Documentation
◆ normal
UnitVec playrho::d2::RayCastHit::normal |
Surface normal in world coordinates at the point of contact.
Definition at line 76 of file RayCastOutput.hpp.
◆ fraction
UnitInterval<Real> playrho::d2::RayCastHit::fraction = UnitInterval<Real>{0} |
Fraction.
- Note
- This is a unit interval value - a value between 0 and 1 - or it's invalid.
Definition at line 80 of file RayCastOutput.hpp.
The documentation for this struct was generated from the following file:
- Collision/RayCastOutput.hpp