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

Jittery Entities #237

Open
AlexanderwithaA opened this issue Jan 27, 2024 · 3 comments
Open

Jittery Entities #237

AlexanderwithaA opened this issue Jan 27, 2024 · 3 comments
Labels
A: enhancement New feature or request C: wizards Z: low priority This will be fixed but other things are more important

Comments

@AlexanderwithaA
Copy link

I have polymc and Yamato Gun on the latest version of minecraft, I used an override to do so. When I fire a gun the bullet jitters as it flies.

Minecraft.1.20.4.-.Multiplayer.3rd-party.Server.2024-01-26.18-22-12.mp4

Also I tried disabling gravity with a command block yet it didn't allow me to do so, didn't like the entity id I put, so how is that formatted with polymc?

@TheEpicBlock
Copy link
Owner

The main cause of this issue is PolyMc uses snowballs for this, which have slightly different physics to bullets. The situation can definitely be improved on PolyMc's side but any solution will have it's downsides.
Regarding the entity id, if you type @e[type=smth] then it might appear red on the client, but it'll still work if you press enter

@Patbox
Copy link
Contributor

Patbox commented Jan 27, 2024

I think replacing snowball with display entity with correct teleport interpolation for position and billboard enabled could solve this

@TheEpicBlock
Copy link
Owner

That is the best option but I think you'd end up with slightly more lag since you'll miss out on the prediction part. Minor downside but still a downside. Calculating where the projectile will be next tick and sending that might help but I'm unsure if that's correct, will have to check projectile code.

@TheEpicBlock TheEpicBlock added A: enhancement New feature or request Z: low priority This will be fixed but other things are more important C: wizards labels Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: enhancement New feature or request C: wizards Z: low priority This will be fixed but other things are more important
Projects
None yet
Development

No branches or pull requests

3 participants