Skip to content

Commit d864153

Browse files
committed
[collision-query] Small improvements
1 parent 5724269 commit d864153

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/vulkan-renderer/world/collision.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
#include <array>
99
#include <limits>
1010
#include <memory>
11-
#include <utility>
1211

1312
namespace inexor::vulkan_renderer::world {
1413

1514
template <typename T>
16-
RayCubeCollision<T>::RayCubeCollision(std::shared_ptr<T> cube, const glm::vec3 ray_pos, const glm::vec3 ray_dir,
17-
std::optional<glm::vec3> vertex_intersection)
15+
RayCubeCollision<T>::RayCubeCollision(const std::shared_ptr<T> cube, const glm::vec3 ray_pos, const glm::vec3 ray_dir,
16+
const std::optional<glm::vec3> vertex_intersection)
1817
: m_cube(cube), m_vertex_intersection(vertex_intersection) {
1918

2019
/// In order to work with cubes of arbitrary size, this lambda calculates the center of a cube's face with respect
@@ -172,7 +171,7 @@ RayCubeCollision<T>::RayCubeCollision(std::shared_ptr<T> cube, const glm::vec3 r
172171
}
173172

174173
// Explicit instantiation
175-
template RayCubeCollision<Cube>::RayCubeCollision(std::shared_ptr<Cube>, const glm::vec3, const glm::vec3,
176-
std::optional<glm::vec3>);
174+
template RayCubeCollision<Cube>::RayCubeCollision(const std::shared_ptr<Cube>, const glm::vec3, const glm::vec3,
175+
const std::optional<glm::vec3>);
177176

178177
} // namespace inexor::vulkan_renderer::world

0 commit comments

Comments
 (0)