-
Notifications
You must be signed in to change notification settings - Fork 8
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
Bunny hopp speed boost on slanted terrain. #1
Comments
Thank you. Will make a note of this to add to further improve the bhop physics. Leaving this here to remind me. Have a bunch of other tutorials to get through first. If anyone comes across this and has any idea how this might be implemented, we can discuss this here. If no one else does I will take a closer look when I have time. |
Got another comment I think that relates to this on one of my videos:
It looks like a couple mechanics may depend on the current angle of the floor you're on. |
I made a function that kind of works for now, though it is far from perfect.
And start the function in _physics_process handeling jump mechanic
|
Bunny hopping should multiply speed by a bit when landing on a slanted surface while going downhill.
This is how I think it might work,
air time or velocity * Surfase degrees
I belive you also lose speed while bunny hopping up a hill.
So a flat terrain would be a 1X multeplier, while downward might capped at max 3X multiplyer and up min 0.5X loss
The multiplier would probobly be a linear interpolation (LERP) If I use that term correctly.
Video showcasing it
https://www.youtube.com/watch?v=aH633mHw8UM
Side note. I also tested falling straight down fron the sky (god mode) and landing a bunny hopp on flat terrein. It gave no speed boost
"Crouching gives more speedboost because of airtime or velocity gain but is way harder to do and you can't uncrouch"
The text was updated successfully, but these errors were encountered: