// f += ForceRepWall(ped,*(static_cast<Line*>(goal)), centroid, inside);
}
// }
}
}
returnf;
returnf;
...
@@ -482,7 +482,7 @@ Point VelocityModel::ForceRepWall(Pedestrian* ped, const Line& w, const Point& c
...
@@ -482,7 +482,7 @@ Point VelocityModel::ForceRepWall(Pedestrian* ped, const Line& w, const Point& c
e_iw=dist/Distance;
e_iw=dist/Distance;
}
}
else{
else{
Log->Write("WARNING:\t Velocity: forceRepWall() ped %d is too near to the wall (dist=%f)",ped->GetID(),Distance);
Log->Write("WARNING:\t Velocity: forceRepWall() ped %d [%f, %f] is too near to the wall [%f, %f]-[%f, %f] (dist=%f)",ped->GetID(),ped->GetPos()._y,ped->GetPos()._y,w.GetPoint1()._x,w.GetPoint1()._y,w.GetPoint2()._x,w.GetPoint2()._y,Distance);