PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::d2::RayCastHit Struct Reference

Ray-cast hit data. More...

#include <RayCastOutput.hpp>

Collaboration diagram for playrho::d2::RayCastHit:
[legend]

Public Attributes

UnitVec normal
 Surface normal in world coordinates at the point of contact.
 
UnitInterval< Realfraction = 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.

Member Data Documentation

◆ 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.

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