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