PrismarineJS / prismarine-physics

Provide the physics engine for minecraft entities
MIT License
35 stars 39 forks source link

Fixed airborne movement factor for sprinting #75

Closed olie304 closed 1 year ago

olie304 commented 2 years ago

The horizontal movement factor for airborne movements while sprinting is not implemented. The result is that the velocity falls off too quickly and the engine will miss long jumps.

In vanilla: 1.18.2 image 1.7.10 image

rom1504 commented 2 years ago

could you have a look @IceTank ?

olie304 commented 2 years ago

Here are logs for comparing Minecraft 1.18 movement velocities to Prismarine physics velocities (using this PR) Prismarine: https://gist.github.com/olie304/1d650f89a01748bdeb1a3aa687848925 Minecraft: https://gist.github.com/olie304/36169b24ea75a8df45739a8b09043285

rom1504 commented 1 year ago

any thoughts @IceTank ?

IceTank commented 1 year ago

The horizontal movement factor for airborne movements while sprinting is not implemented. The result is that the velocity falls off too quickly and the engine will miss long jumps.

In vanilla: 1.18.2 image 1.7.10 image

Is this also the case for other versions? Like 1.8 or 1.12?