Ray-cast output data.
More...
#include <RayCastOutput.hpp>
Ray-cast output data.
The ray hits at p1 + fraction * (p2 - p1), where p1 and p2 come from RayCastInput.
◆ RayCastOutput() [1/2]
box2d::RayCastOutput::RayCastOutput |
( |
| ) |
|
|
default |
◆ RayCastOutput() [2/2]
constexpr box2d::RayCastOutput::RayCastOutput |
( |
UnitVec2 |
n, |
|
|
RealNum |
f, |
|
|
bool |
h = true |
|
) |
| |
|
inlinenoexcept |
◆ fraction
RealNum box2d::RayCastOutput::fraction = 0 |
◆ hit
bool box2d::RayCastOutput::hit = false |
◆ normal
The documentation for this struct was generated from the following file: