1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Remove unused code

This commit is contained in:
elsid 2023-07-01 13:29:46 +02:00
parent 350027c588
commit 548c38f54d
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

@ -18,8 +18,6 @@
namespace DetourNavigator
{
struct Settings;
inline bool inRange(const osg::Vec3f& v1, const osg::Vec3f& v2, const float r)
{
return (osg::Vec2f(v1.x(), v1.z()) - osg::Vec2f(v2.x(), v2.z())).length() < r;
@ -87,12 +85,6 @@ namespace DetourNavigator
std::reference_wrapper<const RecastSettings> mSettings;
};
inline bool initNavMeshQuery(dtNavMeshQuery& value, const dtNavMesh& navMesh, const int maxNodes)
{
const auto status = value.init(&navMesh, maxNodes);
return dtStatusSucceed(status);
}
dtPolyRef findNearestPoly(const dtNavMeshQuery& query, const dtQueryFilter& filter, const osg::Vec3f& center,
const osg::Vec3f& halfExtents);