Hymn to Beauty
C++ 3D Engine
MousePicking Namespace Reference

Functions

glm::vec3 GetRayDirection (const Entity *camera, const glm::mat4 &projection, const Utility::Window *window)
 Get the direction of the ray in world space. Normalized. More...
 

Function Documentation

◆ GetRayDirection()

glm::vec3 MousePicking::GetRayDirection ( const Entity camera,
const glm::mat4 &  projection,
const Utility::Window window 
)

Get the direction of the ray in world space. Normalized.

Parameters
cameraThe camera the mouse picking makes calculations from.
projectionThe camera's projection matrix.
windowThe window to pick in.