Remove pausing pedrestian when reaching points from a path
This commit is contained in:
parent
b6e7a6a01a
commit
cb58f47231
|
@ -62,9 +62,8 @@ namespace nav {
|
|||
_nav->GetWalkerPosition(it.first, current);
|
||||
// check distance to the target point
|
||||
carla::geom::Vector3D dist(target.x - current.x, target.z - current.z, target.y - current.y);
|
||||
if (dist.SquaredLength() <= 4) {
|
||||
if (dist.SquaredLength() <= 1) {
|
||||
info.state = WALKER_IN_EVENT;
|
||||
_nav->PauseAgent(it.first, true);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue