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

#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

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

Detailed Description

Definition at line 35 of file RayInfo2D.hpp.

Constructor & Destructor Documentation

jop::RayInfo2D::RayInfo2D ( )

Default constructor.

jop::RayInfo2D::RayInfo2D ( Collider2D coll,
const glm::vec2 &  pnt,
const glm::vec2 &  norm 
)

Constructor.

Parameters
collPointer to the collider
pntHit point
normHit normal

Member Data Documentation

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.


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