Anvil Engine
Loading...
Searching...
No Matches
AnvilRaycastCallback Class Reference
Inheritance diagram for AnvilRaycastCallback:

Public Member Functions

virtual decimal notifyRaycastHit (const RaycastInfo &info) override

Public Attributes

struct { 
   bool   hit = false 
   glm::vec3   point 
   glm::vec3   normal 
   float   fraction = 1.0f 
   Collider *   collider = nullptr 
result

Member Function Documentation

◆ notifyRaycastHit()

virtual decimal AnvilRaycastCallback::notifyRaycastHit ( const RaycastInfo & info)
inlineoverridevirtual

Handles notification of a ray hit event

Parameters
infoContains detailed information about the raycast hit
Returns
The hit fraction of the raycast

Member Data Documentation

◆ collider

Collider* AnvilRaycastCallback::collider = nullptr

◆ fraction

float AnvilRaycastCallback::fraction = 1.0f

◆ hit

bool AnvilRaycastCallback::hit = false

◆ normal

glm::vec3 AnvilRaycastCallback::normal

◆ point

glm::vec3 AnvilRaycastCallback::point

◆ [struct]

struct { ... } AnvilRaycastCallback::result

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