Core/PathFinding: Fix mmaps raycast without hit
Update Z coordinate of end position when casting a mmap raycast that doesn't hit the target
This commit is contained in:
1 parent
10dc04b2f2
commit
9eafd794f8
1 file changed
+2
@@ -459,6 +459,8 @@ void PathGenerator::BuildPolyPath(G3D::Vector3 const& startPos, G3D::Vector3 con
|
||||
_type = PATHFIND_INCOMPLETE;
|
||||
return;
|
||||
}
|
||||
else
|
||||
_navMeshQuery->getPolyHeight(_pathPolyRefs[_polyLength - 1], endPoint, &endPoint[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user