Skip to content
Snippets Groups Projects
Commit b80c5cea authored by Lukas Werner's avatar Lukas Werner
Browse files

Made HashGrids body searching function const

parent bb52e2d6
Branches
Tags
No related merge requests found
......@@ -307,7 +307,7 @@ public:
template<typename BodyTuple>
BodyID getClosestBodyIntersectingWithRay(const raytracing::Ray& ray, const AABB& blockAABB,
real_t& t, Vec3& n,
std::function<bool (const BodyID body)> isBodyVisibleFunc);
std::function<bool (const BodyID body)> isBodyVisibleFunc) const;
protected:
//**Utility functions***************************************************************************
......@@ -765,7 +765,7 @@ BodyID HashGrids::HashGrid::getRayIntersectingBody(const raytracing::Ray& ray, c
template<typename BodyTuple>
BodyID HashGrids::getClosestBodyIntersectingWithRay(const raytracing::Ray& ray, const AABB& blockAABB,
real_t& t, Vec3& n,
std::function<bool (const BodyID body)> isBodyVisibleFunc) {
std::function<bool (const BodyID body)> isBodyVisibleFunc) const {
real_t inf = std::numeric_limits<real_t>::max();
BodyID body_closest = NULL;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment