Commit 4bd49640 authored by Marion Goedel's avatar Marion Goedel
Browse files

Account for extended required space in BHM by adapting the...

Account for extended required space in BHM by adapting the getDynamicElementRequiredPlace function in BHM.
parent 4aa78fe7
......@@ -18,6 +18,7 @@ import org.vadere.state.scenario.DynamicElement;
import org.vadere.state.scenario.Pedestrian;
import org.vadere.state.scenario.Target;
import org.vadere.state.scenario.Topography;
import org.vadere.util.geometry.shapes.VCircle;
import org.vadere.util.geometry.shapes.VPoint;
import org.vadere.util.geometry.shapes.VShape;
......@@ -87,7 +88,7 @@ public class BehaviouralHeuristicsModel implements MainModel {
@Override
public VShape getDynamicElementRequiredPlace(@NotNull final VPoint position) {
return createElement(position, new AttributesAgent(attributesPedestrian, -1)).getShape();
return new VCircle(position, new AttributesAgent(attributesPedestrian, -1).getRadius()+new AttributesBHM().getSpaceToKeep());
}
@Override
......
Supports Markdown
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