1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-28 20:15:32 +00:00
openmw-tes3mp/components/detournavigator/settings.hpp
elsid ed73d130f9
Cache navmesh tiles
Use LRU modification to hold currently used items. Use RecastMesh binary
data for item key.

Store original pointer of btCollisionShape in user pointer to make available
it as an identifier within all duplicates. Use pointer to heights data array
for btHeightfieldTerrainShape.
2018-10-13 22:22:12 +03:00

40 lines
1.1 KiB
C++

#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_SETTINGS_H
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_SETTINGS_H
#include <string>
namespace DetourNavigator
{
struct Settings
{
bool mEnableWriteRecastMeshToFile;
bool mEnableWriteNavMeshToFile;
bool mEnableRecastMeshFileNameRevision;
bool mEnableNavMeshFileNameRevision;
float mCellHeight;
float mCellSize;
float mDetailSampleDist;
float mDetailSampleMaxError;
float mMaxClimb;
float mMaxSimplificationError;
float mMaxSlope;
float mRecastScaleFactor;
float mSwimHeightScale;
int mBorderSize;
int mMaxEdgeLen;
int mMaxNavMeshQueryNodes;
int mMaxVertsPerPoly;
int mRegionMergeSize;
int mRegionMinSize;
int mTileSize;
std::size_t mAsyncNavMeshUpdaterThreads;
std::size_t mMaxNavMeshTilesCacheSize;
std::size_t mMaxPolygonPathSize;
std::size_t mMaxSmoothPathSize;
std::size_t mTrianglesPerChunk;
std::string mRecastMeshPathPrefix;
std::string mNavMeshPathPrefix;
};
}
#endif