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

Pathfinding Issues #70

Open
agent-q1 opened this issue Jun 19, 2020 · 0 comments
Open

Pathfinding Issues #70

agent-q1 opened this issue Jun 19, 2020 · 0 comments

Comments

@agent-q1
Copy link
Contributor

agent-q1 commented Jun 19, 2020

Pathfinding Issues

Related to #29

What happens

The characters continuously request paths to the destination (as a result of their needs behaviours) almost flooding the system. However, the characters don't seem to have a direction for moving at all. They just sit idle.

Why it happens.

After investigation, the characters request for a path returns a successful path (The future is set to a valid result) however, the path always seems to have no WalkableBlocks in it's nodes. Hence, the characters have no path to actually follow along (in the move_along_path and move_to behaviours). The characters then keep requesting paths, possibly creating strain on the system. Maybe the NavgraphSystem is not tracking the blocks being added later by DC (example, while filling the floor before placing the house). Thus, whenever a path is requested, to the NavGraphSystem, it looks like the path is being requested from some point in the air. This point doesn't have any attached blocks to it (It's just a point hanging in the air). Thus, the NavGraphSystem is unable to return a valid path

How to fix

Improvements to the UdateChunk events and NavGraphChanged events.

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

1 participant