GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::RayHit< N, T > Struct Template Reference

Result of a raycast hit. More...

#include <GREM/core/geometry.hpp>

Public Attributes

vec< N, T > localOffset
 Offset from the object's center of mass in shape-local space at which the hit occured.
T distance
 Distance from the ray origin, along the ray direction, at which the hit occured.
vec< N, T > normal
 Unit normal vector of the surface that was hit.

Detailed Description

template<size_t N, typename T>
struct grem::RayHit< N, T >

Result of a raycast hit.

Template Parameters
Nnumber of vector dimensions.
Tscalar coordinate component type.

Member Data Documentation

◆ localOffset

template<size_t N, typename T>
vec<N, T> grem::RayHit< N, T >::localOffset

Offset from the object's center of mass in shape-local space at which the hit occured.

◆ distance

template<size_t N, typename T>
T grem::RayHit< N, T >::distance

Distance from the ray origin, along the ray direction, at which the hit occured.

◆ normal

template<size_t N, typename T>
vec<N, T> grem::RayHit< N, T >::normal

Unit normal vector of the surface that was hit.


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