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

Example game bug where agents slide diagonally instead of moving straight #9

Open
nickm980 opened this issue May 26, 2023 · 3 comments
Assignees
Labels
bug Something isn't working example-game Issues about the example phaser game

Comments

@nickm980
Copy link
Owner

nickm980 commented May 26, 2023

Describe the bug

Agents will occasionally move diagonally to the next square instead of turning right at 90 degree angles (for example at the timestamp 0:03) when calling this function

moveAgent({ scene: this, name: "Medina", location: "Red House", })

drifting.mp4

Expected Behavior

Agents should move 90 degrees to their next location without any diagonal movement

Desktop (please complete the following information):

OS: Windows
Browser: Chrome
Version: 113.0.5672.127

@nickm980 nickm980 moved this to Todo in smallville May 26, 2023
@nickm980 nickm980 added the example-game Issues about the example phaser game label May 26, 2023
@nickm980 nickm980 changed the title Example game bug where agents slide diagonally should be fixed, but this isn't really a pressing issue Example game bug where agents slide diagonally instead of moving straight May 26, 2023
@nickm980 nickm980 added the bug Something isn't working label May 26, 2023
@Stan-Stani
Copy link
Contributor

I'll look into this

@nickm980 nickm980 moved this from Todo to In Progress in smallville May 26, 2023
@Stan-Stani
Copy link
Contributor

https://github.com/prettymuchbryce/easystarjs

So it looks like navmesh doesn't support axis-aligned movement out of the box. I looked into some other solutions and easystar seems like it might be better if we really need this kind of movement.

@nickm980
Copy link
Owner Author

nickm980 commented May 26, 2023

https://github.com/prettymuchbryce/easystarjs

So it looks like navmesh doesn't support axis-aligned movement out of the box. I looked into some other solutions and easystar seems like it might be better if we really need this kind of movement.

Ok - it's not a huge problem because it's mostly aesthetic, but we should probably eventually switch to easystar. It might be better to work on #18 and #17 first and come back to this later

@nickm980 nickm980 moved this from In Progress to Todo in smallville May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working example-game Issues about the example phaser game
Projects
Status: Todo
Development

No branches or pull requests

2 participants