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

Running downhill rapidly alternates poses and jumpability #51

Open
1j01 opened this issue Sep 1, 2024 · 1 comment
Open

Running downhill rapidly alternates poses and jumpability #51

1j01 opened this issue Sep 1, 2024 · 1 comment
Labels

Comments

@1j01
Copy link
Owner

1j01 commented Sep 1, 2024

When the player is running downhill, at some slopes, it alternates between the jump pose and run animation.
Also, jumping is presumably unreliable since the pose change is based on groundedness which is also what governs whether you can jump.

@1j01 1j01 added the bug label Sep 1, 2024
@1j01
Copy link
Owner Author

1j01 commented Sep 22, 2024

Here's a video about handling characters walking over stairs
Snapping to the ground if the player is near it as they describe should fix this.
There needs to be an exception for jumping, so you can, you know, jump, still, even if your jump velocity is lower than the snapping distance.
But it also shouldn't snap to the ground if you're falling towards it, as that would just disrupt the motion as you hit the ground, so I guess it should only snap if in the previous frame you were on the ground.

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

No branches or pull requests

1 participant