PlayRho  2.0.0
An interactive physics engine & library.
playrho::d2::RayCastHit Struct Reference

Ray-cast hit data. More...

#include <playrho/d2/RayCastOutput.hpp>

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

Public Attributes

UnitIntervalFF< Realfraction
 Fraction. More...
 
UnitVec normal
 Surface normal in world coordinates at the point of contact.
 

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

UnitIntervalFF<Real> playrho::d2::RayCastHit::fraction

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: