This commit is contained in:
aozhiwei 2022-12-28 14:45:00 +08:00
parent 97f9f3f760
commit 78a996cb8f
2 changed files with 7 additions and 7 deletions

View File

@ -252,9 +252,9 @@ int MapInstance::AllocUniid()
}
int MapInstance::FindStraightPath(int layer,
const a8::Vec3& start,
const a8::Vec3& end,
std::vector<a8::Vec3>& paths)
const glm::vec3& start,
const glm::vec3& end,
std::vector<glm::vec3>& paths)
{
float spos[3];
spos[0] = start.x;
@ -321,7 +321,7 @@ int MapInstance::FindStraightPath(int layer,
&nstraightPath,
MAX_POLYS);
for(int i = 0; i < nstraightPath * 3; ) {
a8::Vec3 currpos;
glm::vec3 currpos;
currpos.x = straightPath[i++];
currpos.y = straightPath[i++];
currpos.z = straightPath[i++];

View File

@ -26,9 +26,9 @@ class MapInstance : public std::enable_shared_from_this<MapInstance>
dtNavMesh* GetNavMesh() { return navmesh_; };
dtNavMeshQuery* GetNavMeshQuery() { return navmesh_query_; };
int FindStraightPath(int layer,
const a8::Vec3& start,
const a8::Vec3& end,
std::vector<a8::Vec3>& paths);
const glm::vec3& start,
const glm::vec3& end,
std::vector<glm::vec3>& paths);
int FindRandomPointAroundCircle(int layer,
const glm::vec3& center_pos,
float max_radius,