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

Result of a shapecast hit. More...

#include <GREM/physics/collision.hpp>

Public Attributes

Pair< Length< N > > localOffsets
 Offsets from the objects' centers of mass in shape-local space at which the collision occured.
Direction< N > normal
 Unit vector pointing away from the surface of the second object and towards the surface of the first object.
Distance distance
 Distance at which the hit occured.

Detailed Description

template<size_t N>
struct grem::physics::ShapecastHit< N >

Result of a shapecast hit.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

Member Data Documentation

◆ localOffsets

template<size_t N>
Pair<Length<N> > grem::physics::ShapecastHit< N >::localOffsets

Offsets from the objects' centers of mass in shape-local space at which the collision occured.

◆ normal

template<size_t N>
Direction<N> grem::physics::ShapecastHit< N >::normal

Unit vector pointing away from the surface of the second object and towards the surface of the first object.

◆ distance

template<size_t N>
Distance grem::physics::ShapecastHit< N >::distance

Distance at which the hit occured.


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