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

Move objects out of way if they happen to be inside an exclusion area #99

Open
Tracked by #246
Indy2222 opened this issue Jun 2, 2022 · 2 comments
Open
Tracked by #246

Comments

@Indy2222
Copy link
Collaborator

Indy2222 commented Jun 2, 2022

No player is permitted to build anything in a place occupied by units. However due to small delays of pathfinder updates (which is done asynchronously), an object might happen to be inside a static object.

In such a case, the object should move to the closest non-occupied point. If it is moving, new path should be found from the non-occupied point to the target and prepended by the objects current position.

This is related to #98.

@Indy2222
Copy link
Collaborator Author

Indy2222 commented Jun 5, 2022

Due to imprecise object movement, inertia and so on, an object may temporarily or permanently cross exclusion area by some small distance. If a new path is searched during during that moment, none is found and the object gets forever stuck.

@Indy2222 Indy2222 added the C-Bug label Jun 5, 2022
Indy2222 added a commit that referenced this issue Jul 1, 2022
Indy2222 added a commit that referenced this issue Jul 1, 2022
Indy2222 added a commit that referenced this issue Jul 2, 2022
Indy2222 added a commit that referenced this issue Jul 2, 2022
@Indy2222 Indy2222 mentioned this issue Nov 12, 2022
83 tasks
@Indy2222 Indy2222 modified the milestones: MVP, Version 0.1 Nov 15, 2022
Copy link

There is no activity on the issue for some time. The issue will be automatically closed in 3 weeks.

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

No branches or pull requests

1 participant