question

christoph gruber avatar image
1 Like"
christoph gruber asked christoph gruber commented

people changing path

Can somebody help me that people don´t change the preferred path? In my model people suddenly change the left path to the right! What can I do that 2 people are able walking side by side the floor and the stairway?

pathchanging.fsm

Choose One
astar navigatorpeople module
pathchanging.png (114.2 KiB)
pathchanging.fsm (742.5 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered christoph gruber commented

Preferred paths don't make people stay on them across their length. They just adjust the cost of moving between grid points such that it seems like a shorter path to move between grid points along the path. However, as soon as the cost of staying on the path is higher than following a new route of the path, the traveler will leave the path.

Here's a version of your model where I used dividers to split the stairs into two paths and then I put one preferred path on the longer path and adjusted its weight value until that path looked shorter for people coming from the right.

stairs.fsm

Also, I strongly recommend you turn on the Snap Dividers to Grid option so that you can actually tell where the divider placement is doing something different.


stairs.fsm (740.2 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

christoph gruber avatar image christoph gruber commented ·

Thanks a lot @Matthew Gillespie for the solution! I played a lot with dividers and path, but I had not managed the problem. A good hint is to use Snap Dividers to Grid when using AStar! Thanks .

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.