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

Smooth out Bee Queen turning #165

Open
TelepathicGrunt opened this issue Nov 19, 2022 · 3 comments
Open

Smooth out Bee Queen turning #165

TelepathicGrunt opened this issue Nov 19, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@TelepathicGrunt
Copy link
Owner

It is currently stuttering when Bee Queen slowly rotated to look at player. Might be able to fix it…

@TelepathicGrunt TelepathicGrunt added the enhancement New feature or request label Nov 19, 2022
@TelepathicGrunt TelepathicGrunt self-assigned this Nov 19, 2022
@TelepathicGrunt TelepathicGrunt added the help wanted Extra attention is needed label Jan 6, 2023
@TelepathicGrunt
Copy link
Owner Author

Nope couldn’t fix it. If anyone wants to help, give a PR a shot and see if you can get it to be smoothed out!

@SkyyWasTaken
Copy link

SkyyWasTaken commented Nov 13, 2024

Managed to get it this far:

2024-11-12_23-02-50.mp4

Note that the queen bee spins 10x faster than she did previously. I would rather not have done this, but there is no way to avoid this without messing with the renderer.

The issue is that Minecraft only gives entities 256 unique directions they can face, and the queen's turning speed was slow enough that the animation for her spin finished before the server could turn her far enough to hit a new unique direction. Fixing it completely and allowing you to drop below .5 turning speed would require modifying the client-side look code to force the spin to take long enough for the server to send the new movement packet.

@TelepathicGrunt
Copy link
Owner Author

I asked some friends and they said the issue is also that mc sends the entity rotation as a byte which is why there is 256 directions. The server has the true direction but the client doesn't. Very irritating. Wondering if there is a way to do a custom packet to sync the true direction to make the work. But then I worry about packet spam.

At least the 256 limit explains why I had so many issues getting it to work before.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants