2020-01-20 22:06:47 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_FINDRANDOMPOINTAROUNDCIRCLE_H
|
|
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_FINDRANDOMPOINTAROUNDCIRCLE_H
|
|
|
|
|
|
|
|
#include "flags.hpp"
|
|
|
|
|
|
|
|
#include <osg/Vec3f>
|
|
|
|
|
2023-04-21 00:13:40 +00:00
|
|
|
#include <optional>
|
|
|
|
|
2023-02-17 13:55:05 +00:00
|
|
|
class dtNavMeshQuery;
|
2020-01-20 22:06:47 +00:00
|
|
|
|
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
2021-11-06 12:46:43 +00:00
|
|
|
struct DetourSettings;
|
2020-01-20 22:06:47 +00:00
|
|
|
|
2023-02-17 13:55:05 +00:00
|
|
|
std::optional<osg::Vec3f> findRandomPointAroundCircle(const dtNavMeshQuery& navMeshQuery,
|
|
|
|
const osg::Vec3f& halfExtents, const osg::Vec3f& start, const float maxRadius, const Flags includeFlags,
|
2022-05-17 15:04:11 +00:00
|
|
|
float (*prng)());
|
2020-01-20 22:06:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|