added walker sanity checks
This commit is contained in:
@@ -50,6 +50,9 @@ namespace NM {
|
||||
|
||||
ResultEntry getOne(const NavMeshWalkParams<Tria>& params) const {
|
||||
|
||||
// sanity checks
|
||||
params.check();
|
||||
|
||||
ResultEntry res;
|
||||
res.probability = 0;
|
||||
|
||||
@@ -94,6 +97,9 @@ namespace NM {
|
||||
|
||||
ResultList getMany(const NavMeshWalkParams<Tria>& params) const {
|
||||
|
||||
// sanity checks
|
||||
params.check();
|
||||
|
||||
ResultList res;
|
||||
|
||||
// to-be-walked distance;
|
||||
|
||||
Reference in New Issue
Block a user