Commit fd7953ae authored by Benedikt Zoennchen's avatar Benedikt Zoennchen
Browse files

Merge branch 'issue#242' into 'master'

fix issue #242.

Closes #242

See merge request !66
parents a303cac0 ea3b983c
Pipeline #122557 passed with stages
in 114 minutes and 28 seconds
...@@ -153,6 +153,9 @@ public class PedestrianOSM extends Pedestrian { ...@@ -153,6 +153,9 @@ public class PedestrianOSM extends Pedestrian {
if(attributesOSM.isMinimumStepLength() && getPosition().distance(nextPosition) < minStepLength) { if(attributesOSM.isMinimumStepLength() && getPosition().distance(nextPosition) < minStepLength) {
nextPosition = getPosition(); nextPosition = getPosition();
} }
/*else if(potentialFieldTarget.getPotential(nextPosition, this) >= potentialFieldTarget.getPotential(getPosition(), this)) {
nextPosition = getPosition();
}*/
} else { } else {
stairStepOptimizer = new StairStepOptimizer(stairs); stairStepOptimizer = new StairStepOptimizer(stairs);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment