Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
CastRay.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
utils/HitRecord.hpp
"
4
#include <glm/vec3.hpp>
5
#include <optional>
6
7
namespace
Engine
{
8
class
Core
;
9
}
10
11
namespace
Physics::Utils
{
12
class
Ray
;
13
std::optional<HitRecord>
CastRay
(
const
Engine::Core &core,
const
Ray
&ray,
float
maxDistance);
14
}
// namespace Physics::Utils
HitRecord.hpp
Engine::Core
The core is the place where all the data of the engine is stored. It contains the registry (entities)...
Definition
Core.hpp:33
Engine
Definition
Core.hpp:17
Physics::Utils
Definition
BiMap.hpp:7
Physics::Utils::CastRay
std::optional< HitRecord > CastRay(const Engine::Core &core, const Ray &ray, float maxDistance)
Definition
CastRay.cpp:9
Physics::Utils::Ray
Definition
Ray.hpp:6
src
plugin
physics
src
utils
CastRay.hpp
Generated by
1.16.1