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

getMovement in CommonLivingEntity is wrong #19

Open
ghost opened this issue Jan 3, 2014 · 0 comments
Open

getMovement in CommonLivingEntity is wrong #19

ghost opened this issue Jan 3, 2014 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 3, 2014

You assume that a player is moving into the same direction that he looks which is a wrong assumption if the player using any other key than W or S.

return MathUtil.getDirection(loc.getYaw(), loc.getPitch()).multiply(getForwardMovement());

This only creates a vector that is pointing where the player currently looks not where he is actually walking.

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

0 participants