Commit f55cb357 authored by Jakob Schöttl's avatar Jakob Schöttl
Browse files

Sit down persons on the seat's center

parent 7ee38247
......@@ -28,6 +28,7 @@ import org.vadere.state.scenario.Target;
import org.vadere.state.scenario.TargetListener;
import org.vadere.state.scenario.Topography;
import org.vadere.state.scenario.TrainGeometry;
import org.vadere.util.geometry.shapes.VShape;
import org.vadere.util.math.TruncatedNormalDistribution;
import org.vadere.util.reflection.DynamicClassInstantiator;
......@@ -281,6 +282,8 @@ public class SeatingModel implements ActiveCallback, Model {
private void sitDownIfPossible(Pedestrian pedestrian, Seat seat) {
if (seat.getSittingPerson() == null) {
final VShape seatGeometry = seat.getAssociatedTarget().getShape();
} else {
lookForAlternativeSeat(pedestrian, seat);
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