2020-01-20 23:06:47 +01:00
|
|
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_FINDRANDOMPOINTAROUNDCIRCLE_H
|
|
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_FINDRANDOMPOINTAROUNDCIRCLE_H
|
|
|
|
|
|
|
|
#include "flags.hpp"
|
|
|
|
|
|
|
|
#include <osg/Vec3f>
|
|
|
|
|
2023-04-21 02:13:40 +02:00
|
|
|
#include <optional>
|
|
|
|
|
2023-02-17 14:55:05 +01:00
|
|
|
class dtNavMeshQuery;
|
2020-01-20 23:06:47 +01:00
|
|
|
|
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
2021-11-06 13:46:43 +01:00
|
|
|
struct DetourSettings;
|
2020-01-20 23:06:47 +01:00
|
|
|
|
2023-02-17 14:55:05 +01: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 18:04:11 +03:00
|
|
|
float (*prng)());
|
2020-01-20 23:06:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|