Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
mnd::RayHit Struct Reference

Hit information returned by PhysicsManager::Raycast. More...

#include <Raycast.h>

+ Collaboration diagram for mnd::RayHit:

Public Attributes

vec3 point {0.0F}
 World-space hit point.
 
vec3 normal {0.0F}
 Surface normal at the hit.
 
GameObjectobject = nullptr
 
float fraction = 1.0F
 Fraction along the ray segment in [0, 1].
 

Detailed Description

Hit information returned by PhysicsManager::Raycast.

object may be null even when the ray hits — only collision objects whose owning component called CollisionObject::SetOwner expose a back-pointer.

Definition at line 22 of file Raycast.h.

Member Data Documentation

◆ fraction

float mnd::RayHit::fraction = 1.0F

Fraction along the ray segment in [0, 1].

Definition at line 27 of file Raycast.h.

Referenced by mnd::PhysicsManager::Raycast().

◆ normal

vec3 mnd::RayHit::normal {0.0F}

Surface normal at the hit.

Definition at line 25 of file Raycast.h.

Referenced by mnd::PhysicsManager::Raycast().

◆ object

GameObject* mnd::RayHit::object = nullptr

Definition at line 26 of file Raycast.h.

Referenced by mnd::PhysicsManager::Raycast().

◆ point

vec3 mnd::RayHit::point {0.0F}

World-space hit point.

Definition at line 24 of file Raycast.h.

Referenced by mnd::PhysicsManager::Raycast().


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