OpenJKDF2 icon indicating copy to clipboard operation
OpenJKDF2 copied to clipboard

Player physics is off (v0.9.1)

Open denkillen opened this issue 1 year ago • 6 comments
trafficstars

Various aspects of player physics feel off compared to vanilla:

  • General move speed is slightly slower
  • Swimming is noticeably slower when fighting water currents
  • Jumping has no air control (vanilla had a slight amount in any direction)
  • Jumping against some adjoins causes player to bounce off (see attached)

openjkdf2-adjoinbounce.webm

denkillen avatar Mar 17 '24 21:03 denkillen

Hmm, it's possible some things are still tied to framerate incorrectly. I guess there's a few things to check:

  • General > Advanced > Restore Inconsistent physics
  • General > Advanced > Restore 50Hz midair player physics
  • Test the physics with framerate locked to 50Hz (or higher/lower)

Restore inconsistent physics + messing with framerate will probably be the most interesting, I had to try and adjust framerate to work at high Hz but it definitely was an uphill battle. Currently it works by simulating physics at a constant 150Hz (6x the original nominal 25Hz, which I determined roughly by doing physics tasks on Droidworks maps)

shinyquagsire23 avatar Mar 17 '24 21:03 shinyquagsire23

  • Test the physics with framerate locked to 50Hz (or higher/lower)

I just tested with the framerate locked to 50 and 150 and noticed no differences whatsoever.

denkillen avatar Mar 17 '24 21:03 denkillen

Oh yeah I edited my comment to explain, lowering FPS without "restore inconsistent physics" won't work since it always simulates 150Hz otherwise.

shinyquagsire23 avatar Mar 17 '24 21:03 shinyquagsire23

Ah, didn't notice that menu before. I can definitely feel the difference now. I have my FPS set to 75 and it seems to work fine with those settings, other than the obvious mid-air FPS drop.

denkillen avatar Mar 17 '24 22:03 denkillen