![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
#include <RayInfo.hpp>
Public Member Functions | |
RayInfo () | |
Default constructor. More... | |
RayInfo (Collider *coll, const glm::vec3 &pnt, const glm::vec3 &norm) | |
Constructor. More... | |
Public Attributes | |
Collider * | collider |
Collider component, can be nullptr. More... | |
glm::vec3 | point |
Ray hit point in world coordinates. More... | |
glm::vec3 | normal |
Local ray hit normal. More... | |
Definition at line 36 of file RayInfo.hpp.
jop::RayInfo::RayInfo | ( | ) |
Default constructor.
jop::RayInfo::RayInfo | ( | Collider * | coll, |
const glm::vec3 & | pnt, | ||
const glm::vec3 & | norm | ||
) |
Constructor.
coll | Pointer to the collider |
pnt | Hit point |
norm | Hit normal |
Collider* jop::RayInfo::collider |
Collider component, can be nullptr.
Definition at line 51 of file RayInfo.hpp.
glm::vec3 jop::RayInfo::normal |
Local ray hit normal.
Definition at line 53 of file RayInfo.hpp.
glm::vec3 jop::RayInfo::point |
Ray hit point in world coordinates.
Definition at line 52 of file RayInfo.hpp.