fixed issues with random walks

This commit is contained in:
2018-02-10 14:15:05 +01:00
parent 5e749d4da8
commit 2a923dfabc
3 changed files with 120 additions and 7 deletions

View File

@@ -20,6 +20,7 @@ namespace NM {
template <typename Tria> float inMeter(const int steps, const NavMeshLocation<Tria>& start) const {
Assert::isTrue(isValid(), "invalid step-sizes given");
Assert::isNotNull(start.tria, "no starting triangle given");
if (start.tria->getType() == (int) NM::NavMeshType::STAIR_SKEWED) {
return stepSizeStair_m * steps;