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

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

#include <GREM/physics/Broadphase.hpp>

Public Attributes

EntityID objectID
 Handle to the object that the ray collided with.
Length< N > localOffset
 Offset from the object's center 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 object's surface, in world space.
Distance distance
 Distance from the raycast origin along the raycast direction at which which the ray collided.
CollisionFilterTestResult filterTestResult
 Result of the collision filter test.

Detailed Description

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

Result of a raycast against the objects in a broadphase.

Member Data Documentation

◆ objectID

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

Handle to the object that the ray collided with.

◆ localOffset

template<size_t N>
Length<N> grem::physics::Broadphase< N >::RaycastResult::localOffset

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

◆ normal

template<size_t N>
Direction<N> grem::physics::Broadphase< N >::RaycastResult::normal

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

◆ distance

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

Distance from the raycast origin along the raycast direction at which which the ray collided.

◆ filterTestResult

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

Result of the collision filter test.


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