|
|
|
@ -318,7 +318,6 @@ namespace MWMechanics
|
|
|
|
|
mPath.clear();
|
|
|
|
|
mPath.push_back(endPoint);
|
|
|
|
|
mConstructed = true;
|
|
|
|
|
mPossible = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void PathFinder::buildPathByPathgrid(const osg::Vec3f& startPoint, const osg::Vec3f& endPoint,
|
|
|
|
@ -329,8 +328,7 @@ namespace MWMechanics
|
|
|
|
|
|
|
|
|
|
buildPathByPathgridImpl(startPoint, endPoint, pathgridGraph, std::back_inserter(mPath));
|
|
|
|
|
|
|
|
|
|
mConstructed = true;
|
|
|
|
|
mPossible = !mPath.empty();
|
|
|
|
|
mConstructed = !mPath.empty();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void PathFinder::buildPathByNavMesh(const MWWorld::ConstPtr& actor, const osg::Vec3f& startPoint,
|
|
|
|
@ -343,8 +341,7 @@ namespace MWMechanics
|
|
|
|
|
if (!buildPathByNavigatorImpl(actor, startPoint, endPoint, halfExtents, flags, areaCosts, std::back_inserter(mPath)))
|
|
|
|
|
mPath.push_back(endPoint);
|
|
|
|
|
|
|
|
|
|
mConstructed = true;
|
|
|
|
|
mPossible = !mPath.empty();
|
|
|
|
|
mConstructed = !mPath.empty();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void PathFinder::buildPath(const MWWorld::ConstPtr& actor, const osg::Vec3f& startPoint, const osg::Vec3f& endPoint,
|
|
|
|
@ -369,8 +366,7 @@ namespace MWMechanics
|
|
|
|
|
if (!hasNavMesh && mPath.empty())
|
|
|
|
|
mPath.push_back(endPoint);
|
|
|
|
|
|
|
|
|
|
mConstructed = true;
|
|
|
|
|
mPossible = !mPath.empty();
|
|
|
|
|
mConstructed = !mPath.empty();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool PathFinder::buildPathByNavigatorImpl(const MWWorld::ConstPtr& actor, const osg::Vec3f& startPoint,
|
|
|
|
|