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 #1751

Open
5 tasks
Konclan opened this issue Nov 5, 2021 · 2 comments
Open
5 tasks

Pathfinding #1751

Konclan opened this issue Nov 5, 2021 · 2 comments
Assignees
Labels
Compiler Issue pertains to the custom BEE compilers Enhancement Improvement or tweak to the mod Long-Term This will be slowly implemented across multiple updates Priority: High This issue is important

Comments

@Konclan
Copy link
Contributor

Konclan commented Nov 5, 2021

Description of the feature

A system for pathfinding between two points. It would need:

  • The option to follow walls
  • How many units it should travel before turning
  • How many units it needs to turn
  • What obstructions should it care about
  • What to do when it fails to find a path

Why should this be implemented

Ideally antlines, catwalks, vactubes, and any other item/feature that can use pathfinding should use the same system. This would make future items way easier and dramatically improve existing items. If antlines could be completely split to a new system they might even be able to follow blocks and angles.

Additional information

No response

@Konclan Konclan added Enhancement Improvement or tweak to the mod Compiler Issue pertains to the custom BEE compilers Long-Term This will be slowly implemented across multiple updates labels Nov 5, 2021
@TeamSpen210
Copy link
Member

There's many pathfinding algorithms developed by people, I just need to grab a library for it. Actually the way they work is based on cost - for each cell position, you tell it what connections are allowed (stairs, corners, etc), and how much each would "cost". Then it tries to find the route with the smallest cost. So for antlines for instance we'd want to add an additional cost to corners to discourage that, but we'd need to tune how much that needs to be.

A prerequisite system though is having a collision system, so we can tell where items are and not run straight through them.

@Konclan Konclan pinned this issue Nov 16, 2021
@seagull101
Copy link

seagull101 commented Dec 1, 2022

This could also be useful for catwalks and gel pipes if we add dynamic test chambers in the future.

@Konclan Konclan self-assigned this Oct 15, 2023
@Konclan Konclan added the Priority: High This issue is important label Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Issue pertains to the custom BEE compilers Enhancement Improvement or tweak to the mod Long-Term This will be slowly implemented across multiple updates Priority: High This issue is important
Projects
None yet
Development

No branches or pull requests

3 participants