Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment on Crowd #26

Closed
mitm001 opened this issue Jan 15, 2018 · 2 comments
Closed

Comment on Crowd #26

mitm001 opened this issue Jan 15, 2018 · 2 comments

Comments

@mitm001
Copy link
Contributor

mitm001 commented Jan 15, 2018

This is not a problem but just some observations. If you know of some settings that change this behavior please let me know.

I have written my own crowd now and added its own getters and setters. I did this because I couldn't figure out how to make Crowd take a straight path from the start position to the next corner in the corridor in a realistic manner.

Crowd will start the agent in the general direction of the corner and narrow down the distance to the corner each iteration. This leads to weird things when the path moves from an open area to a narrow path like a stair or door. The agent will bounce around the entrance, narrowing the distance to the next corner each iteration so it looks like the agent is searching for a path rather than just moving it to the next corner. calcSmoothSteerDirection() at times will not make sense because of this behavior. The combination of the two will at times lead to the agent making a wide turn when is should of just moved right to the corner it was targeting.

@ppiastucki
Copy link
Collaborator

I guess you have already played with the flags like: DT_CROWD_ANTICIPATE_TURNS, DT_CROWD_OPTIMIZE_VIS, DT_CROWD_OPTIMIZE_TOPO.

You can find quite a lot of information here: http://digestingduck.blogspot.com.
Some interesting entries:

@ppiastucki
Copy link
Collaborator

In case you have some ideas for improvements or further questions please discuss them at https://github.com/recastnavigation/recastnavigation/ or https://groups.google.com/forum/#!forum/recastnavigation. I will be happy to port any related changes from C++ to recast4j.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants