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

Result of a shapecast against the objects in a broadphase. More...

#include <GREM/physics/Broadphase.hpp>

Public Attributes

EntityID objectID
 Handle to the object that the shape collided with.
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 perpendicular to the separating plane of the collision, pointing away from the second object's surface, in world space.
Distance distance
 Distance along the shapecast direction at which the collision occured.
CollisionFilterTestResult filterTestResult
 Result of the collision filter test.

Detailed Description

template<size_t N>
struct grem::physics::Broadphase< N >::ShapecastResult

Result of a shapecast against the objects in a broadphase.

Member Data Documentation

◆ objectID

template<size_t N>
EntityID grem::physics::Broadphase< N >::ShapecastResult::objectID

Handle to the object that the shape collided with.

◆ localOffsets

template<size_t N>
Pair<Length<N> > grem::physics::Broadphase< N >::ShapecastResult::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::Broadphase< N >::ShapecastResult::normal

Unit vector perpendicular to the separating plane of the collision, pointing away from the second object's surface, in world space.

◆ distance

template<size_t N>
Distance grem::physics::Broadphase< N >::ShapecastResult::distance

Distance along the shapecast direction at which the collision occured.

◆ filterTestResult

template<size_t N>
CollisionFilterTestResult grem::physics::Broadphase< N >::ShapecastResult::filterTestResult

Result of the collision filter test.


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