added walker sanity checks
This commit is contained in:
@@ -53,6 +53,9 @@ namespace NM {
|
||||
|
||||
ResultEntry getOne(const NavMeshWalkParams<Tria>& params) const {
|
||||
|
||||
// sanity checks
|
||||
params.check();
|
||||
|
||||
static Distribution::Normal<float> dDist(1.0, 0.4);
|
||||
static Distribution::Normal<float> dHead(0.0, 1.0);
|
||||
|
||||
@@ -106,6 +109,9 @@ namespace NM {
|
||||
|
||||
ResultList getMany(const NavMeshWalkParams<Tria>& params) const {
|
||||
|
||||
// sanity checks
|
||||
params.check();
|
||||
|
||||
static Distribution::Normal<float> dDist(1.0, 0.4);
|
||||
static Distribution::Normal<float> dHead(0.0, 1.0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user