In AnyLogic, you define stairs connecting two floors using the
area, see the demo model below:
Let's explain how you can bring the same logic into your model.
Usually when you develop a pedestrian model, you have a layout of the simulated building (station, museum, stadium, etc.).
First, you need to draw the area and place it exactly over the stairs area on the drawing.
Draw the stairs area
- Drag the
element from the
section of the
palette onto the graphical editor, over the layout.
- Resize the area as you need. Finally it should lie exactly over the stairs area on the drawing.
The next thing we need to do is define the slope angle for this area.
Define a slope for the area
- To make the area sloped, first select the
option in the area's
Position and size
- You will see the slope line appeared inside the area in the graphical editor:
- In the graphical editor, adjust the slope line's direction. The line should point exactly in the Z-coordinates growth direction.
- Now we need to define the stairs slope itself. Usually you know either stairs slope angle (case
on the figure below), or the height between the levels (case
- Click the slope line and tune it to define the required slope.
- If you know the angle value (case
Define slope as:
option selected and specify the angle value in the
- Otherwise, if you know the height between the levels (case
in the slope line's
Define slope as
property. In the
property below, enter the height between the levles, in pixels. Then direct the slope line in the graphical editor so that in XY plane it lies parallel to the stairs area direction.