mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 02:53:53 +00:00
28f7a89530
To avoid redundant allocations.
20 lines
531 B
C++
20 lines
531 B
C++
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_FINDRANDOMPOINTAROUNDCIRCLE_H
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_FINDRANDOMPOINTAROUNDCIRCLE_H
|
|
|
|
#include "flags.hpp"
|
|
|
|
#include <optional>
|
|
#include <osg/Vec3f>
|
|
|
|
class dtNavMeshQuery;
|
|
|
|
namespace DetourNavigator
|
|
{
|
|
struct DetourSettings;
|
|
|
|
std::optional<osg::Vec3f> findRandomPointAroundCircle(const dtNavMeshQuery& navMeshQuery,
|
|
const osg::Vec3f& halfExtents, const osg::Vec3f& start, const float maxRadius, const Flags includeFlags,
|
|
float (*prng)());
|
|
}
|
|
|
|
#endif
|