1
This commit is contained in:
parent
97f9f3f760
commit
78a996cb8f
@ -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++];
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user