|
Monad Engine da02fba2
> Undercity Codex_
|
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. | |
| GameObject * | object = nullptr |
| float | fraction = 1.0F |
| Fraction along the ray segment in [0, 1]. | |
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.
| 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().
| vec3 mnd::RayHit::normal {0.0F} |
Surface normal at the hit.
Definition at line 25 of file Raycast.h.
Referenced by mnd::PhysicsManager::Raycast().
| GameObject* mnd::RayHit::object = nullptr |
Definition at line 26 of file Raycast.h.
Referenced by mnd::PhysicsManager::Raycast().
| vec3 mnd::RayHit::point {0.0F} |
World-space hit point.
Definition at line 24 of file Raycast.h.
Referenced by mnd::PhysicsManager::Raycast().