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

Fix horse velocity calculations #73

Open
mistrk7 opened this issue Jul 8, 2024 · 2 comments
Open

Fix horse velocity calculations #73

mistrk7 opened this issue Jul 8, 2024 · 2 comments

Comments

@mistrk7
Copy link

mistrk7 commented Jul 8, 2024

Monentum is done in the dumb way in Minecraft, where W key += forward momentum, D key += side momentum, etc. It makes walking sideways faster than what the velocity implies.

It's not normally an issue but at faster speeds like with horses it's noticable and you have to deal with it, which bothers me. This is how momentum is supposed to be calculated in games:

angle -= pi / 2;

velocity_x = cos(angle) * speed;
velocity_y = sin(angle) * speed;

please add this to horses

good luck implementing 😏
I bet you can't noob 💀

@CodeF53
Copy link
Owner

CodeF53 commented Jul 9, 2024

Slowing down horses would be an awful feature.

@mistrk7
Copy link
Author

mistrk7 commented Jul 15, 2024

Then do this and increase their speed by like 1.1x or something. I hate having to run sideways

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

No branches or pull requests

2 participants