|
|
|
@ -57,7 +57,7 @@ namespace
|
|
|
|
|
{
|
|
|
|
|
const std::size_t navMeshDataSize = 1;
|
|
|
|
|
const std::size_t navMeshKeySize = 49;
|
|
|
|
|
const std::size_t maxSize = navMeshDataSize + navMeshKeySize;
|
|
|
|
|
const std::size_t maxSize = navMeshDataSize + 2 * navMeshKeySize;
|
|
|
|
|
NavMeshTilesCache cache(maxSize);
|
|
|
|
|
|
|
|
|
|
const auto result = cache.set(mAgentHalfExtents, mTilePosition, mRecastMesh, mOffMeshConnections,
|
|
|
|
@ -70,7 +70,7 @@ namespace
|
|
|
|
|
{
|
|
|
|
|
const std::size_t navMeshDataSize = 1;
|
|
|
|
|
const std::size_t navMeshKeySize = 49;
|
|
|
|
|
const std::size_t maxSize = 2 * (navMeshDataSize + navMeshKeySize);
|
|
|
|
|
const std::size_t maxSize = 2 * (navMeshDataSize + 2 * navMeshKeySize);
|
|
|
|
|
NavMeshTilesCache cache(maxSize);
|
|
|
|
|
const auto anotherData = reinterpret_cast<unsigned char*>(dtAlloc(1, DT_ALLOC_PERM));
|
|
|
|
|
NavMeshData anotherNavMeshData {anotherData, 1};
|
|
|
|
@ -86,7 +86,7 @@ namespace
|
|
|
|
|
{
|
|
|
|
|
const std::size_t navMeshDataSize = 1;
|
|
|
|
|
const std::size_t navMeshKeySize = 49;
|
|
|
|
|
const std::size_t maxSize = navMeshDataSize + navMeshKeySize;
|
|
|
|
|
const std::size_t maxSize = navMeshDataSize + 2 * navMeshKeySize;
|
|
|
|
|
NavMeshTilesCache cache(maxSize);
|
|
|
|
|
|
|
|
|
|
cache.set(mAgentHalfExtents, mTilePosition, mRecastMesh, mOffMeshConnections, std::move(mNavMeshData));
|
|
|
|
@ -130,7 +130,7 @@ namespace
|
|
|
|
|
{
|
|
|
|
|
const std::size_t navMeshDataSize = 1;
|
|
|
|
|
const std::size_t navMeshKeySize = 117;
|
|
|
|
|
const std::size_t maxSize = navMeshDataSize + navMeshKeySize;
|
|
|
|
|
const std::size_t maxSize = navMeshDataSize + 2 * navMeshKeySize;
|
|
|
|
|
NavMeshTilesCache cache(maxSize);
|
|
|
|
|
|
|
|
|
|
const std::vector<RecastMesh::Water> water {1, RecastMesh::Water {1, btTransform::getIdentity()}};
|
|
|
|
@ -150,7 +150,7 @@ namespace
|
|
|
|
|
{
|
|
|
|
|
const std::size_t navMeshDataSize = 1;
|
|
|
|
|
const std::size_t navMeshKeySize = 49;
|
|
|
|
|
const std::size_t maxSize = navMeshDataSize + navMeshKeySize;
|
|
|
|
|
const std::size_t maxSize = navMeshDataSize + 2 * navMeshKeySize;
|
|
|
|
|
NavMeshTilesCache cache(maxSize);
|
|
|
|
|
|
|
|
|
|
const std::vector<RecastMesh::Water> water {1, RecastMesh::Water {1, btTransform::getIdentity()}};
|
|
|
|
@ -168,7 +168,7 @@ namespace
|
|
|
|
|
{
|
|
|
|
|
const std::size_t navMeshDataSize = 1;
|
|
|
|
|
const std::size_t navMeshKeySize = 117;
|
|
|
|
|
const std::size_t maxSize = 2 * (navMeshDataSize + navMeshKeySize);
|
|
|
|
|
const std::size_t maxSize = 2 * (navMeshDataSize + 2 * navMeshKeySize);
|
|
|
|
|
NavMeshTilesCache cache(maxSize);
|
|
|
|
|
|
|
|
|
|
const std::vector<RecastMesh::Water> leastRecentlySetWater {1, RecastMesh::Water {1, btTransform::getIdentity()}};
|
|
|
|
@ -200,7 +200,7 @@ namespace
|
|
|
|
|
{
|
|
|
|
|
const std::size_t navMeshDataSize = 1;
|
|
|
|
|
const std::size_t navMeshKeySize = 117;
|
|
|
|
|
const std::size_t maxSize = 2 * (navMeshDataSize + navMeshKeySize);
|
|
|
|
|
const std::size_t maxSize = 2 * (navMeshDataSize + 2 * navMeshKeySize);
|
|
|
|
|
NavMeshTilesCache cache(maxSize);
|
|
|
|
|
|
|
|
|
|
const std::vector<RecastMesh::Water> leastRecentlyUsedWater {1, RecastMesh::Water {1, btTransform::getIdentity()}};
|
|
|
|
@ -244,7 +244,7 @@ namespace
|
|
|
|
|
{
|
|
|
|
|
const std::size_t navMeshDataSize = 1;
|
|
|
|
|
const std::size_t navMeshKeySize = 49;
|
|
|
|
|
const std::size_t maxSize = 2 * (navMeshDataSize + navMeshKeySize);
|
|
|
|
|
const std::size_t maxSize = 2 * (navMeshDataSize + 2 * navMeshKeySize);
|
|
|
|
|
NavMeshTilesCache cache(maxSize);
|
|
|
|
|
|
|
|
|
|
const std::vector<RecastMesh::Water> water {1, RecastMesh::Water {1, btTransform::getIdentity()}};
|
|
|
|
@ -263,7 +263,7 @@ namespace
|
|
|
|
|
const std::size_t navMeshDataSize = 1;
|
|
|
|
|
const std::size_t navMeshKeySize1 = 49;
|
|
|
|
|
const std::size_t navMeshKeySize2 = 117;
|
|
|
|
|
const std::size_t maxSize = 2 * navMeshDataSize + navMeshKeySize1 + navMeshKeySize2;
|
|
|
|
|
const std::size_t maxSize = 2 * navMeshDataSize + 2 * navMeshKeySize1 + 2 * navMeshKeySize2;
|
|
|
|
|
NavMeshTilesCache cache(maxSize);
|
|
|
|
|
|
|
|
|
|
const std::vector<RecastMesh::Water> anotherWater {1, RecastMesh::Water {1, btTransform::getIdentity()}};
|
|
|
|
@ -291,7 +291,7 @@ namespace
|
|
|
|
|
{
|
|
|
|
|
const std::size_t navMeshDataSize = 1;
|
|
|
|
|
const std::size_t navMeshKeySize = 49;
|
|
|
|
|
const std::size_t maxSize = navMeshDataSize + navMeshKeySize;
|
|
|
|
|
const std::size_t maxSize = navMeshDataSize + 2 * navMeshKeySize;
|
|
|
|
|
NavMeshTilesCache cache(maxSize);
|
|
|
|
|
|
|
|
|
|
const std::vector<RecastMesh::Water> water {1, RecastMesh::Water {1, btTransform::getIdentity()}};
|
|
|
|
@ -314,7 +314,7 @@ namespace
|
|
|
|
|
{
|
|
|
|
|
const std::size_t navMeshDataSize = 1;
|
|
|
|
|
const std::size_t navMeshKeySize = 49;
|
|
|
|
|
const std::size_t maxSize = navMeshDataSize + navMeshKeySize;
|
|
|
|
|
const std::size_t maxSize = navMeshDataSize + 2 * navMeshKeySize;
|
|
|
|
|
NavMeshTilesCache cache(maxSize);
|
|
|
|
|
|
|
|
|
|
const std::vector<RecastMesh::Water> water {1, RecastMesh::Water {1, btTransform::getIdentity()}};
|
|
|
|
|