Jopnal Engine  alpha 0.4
Simple Component Based 2D/3D Game Engine
Public Member Functions | Public Attributes | List of all members
jop::RayInfo Class Reference

#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

Collidercollider
 Collider component, can be nullptr. More...
 
glm::vec3 point
 Ray hit point in world coordinates. More...
 
glm::vec3 normal
 Local ray hit normal. More...
 

Detailed Description

Definition at line 36 of file RayInfo.hpp.

Constructor & Destructor Documentation

jop::RayInfo::RayInfo ( )

Default constructor.

jop::RayInfo::RayInfo ( Collider coll,
const glm::vec3 &  pnt,
const glm::vec3 &  norm 
)

Constructor.

Parameters
collPointer to the collider
pntHit point
normHit normal

Member Data Documentation

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.


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