PrismarineJS / prismarine-physics

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

Switched to vanilla values to stop movement from flagging anticheats #112

Open loldoob opened 11 months ago

loldoob commented 11 months ago

The values in the current version flag some anticheats. I switched them to the values from MoveEntityWithHeading in EntityLivingBase.java. These values now emulate vanilla movement with 99.9999999793% accuracy.

frej4189 commented 11 months ago

Very likely that these values differ between versions.

rom1504 commented 11 months ago

How do you measure 99.9999999793 accuracy?

On Wed, Nov 29, 2023, 21:42 Frej Alexander Nielsen @.***> wrote:

Very likely that these values differ between versions.

— Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/prismarine-physics/pull/112#issuecomment-1832670400, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437WQWLEJBVQHS3TFGOTYG6M3NAVCNFSM6AAAAAA75LW2CCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZSGY3TANBQGA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

loldoob commented 11 months ago

I measured the difference in speed values across many different situations and it was off by 0.0000000207. The difference somes from 32 bit to 64 bit conversions from floats to doubles.

rom1504 commented 10 months ago

please fix