Fx2D
A C++20 2D rigid-body physics engine
Loading...
Searching...
No Matches
FxRayHit Struct Reference

Result from a ray cast against the scene. More...

#include <Geometry.h>

+ Collaboration diagram for FxRayHit:

Public Member Functions

bool hit () const
 

Public Attributes

std::shared_ptr< FxEntity > entity = nullptr
 
FxVec2f point {0.0f, 0.0f}
 
FxVec2f normal {0.0f, 0.0f}
 
float distance = 0.0f
 

Detailed Description

Result from a ray cast against the scene.

Definition at line 477 of file Geometry.h.

Member Function Documentation

◆ hit()

bool FxRayHit::hit ( ) const
inline

Definition at line 483 of file Geometry.h.

Member Data Documentation

◆ distance

float FxRayHit::distance = 0.0f

Definition at line 481 of file Geometry.h.

◆ entity

std::shared_ptr<FxEntity> FxRayHit::entity = nullptr

Definition at line 478 of file Geometry.h.

◆ normal

FxVec2f FxRayHit::normal {0.0f, 0.0f}

Definition at line 480 of file Geometry.h.

◆ point

FxVec2f FxRayHit::point {0.0f, 0.0f}

Definition at line 479 of file Geometry.h.


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