SmallJoker / boost_cart

The original version of minetest_game's carts (since 2018).
15 stars 14 forks source link

Carts sometimes reversing direction on specific steep turn on big lag #7

Closed Fixer-007 closed 8 years ago

Fixer-007 commented 8 years ago

I've observed that sometimes (but not rarely), on medium/high speed, carts can reverse movement on that middle turn part on screenshot below: 2016-06-30 17_28_16-minetest opengl 4 5 13416 This problem can be mitigated to some degree with, but not always: 2016-06-30 17_30_36-minetest opengl 4 5 13416

SmallJoker commented 8 years ago

On laggy servers I noticed this too, yes. The source of this problem is the "put back on track" function. It did the first curve (OK) but then it skips a node (lag) -> detects no rail -> teleports back -> uses last known direction (the first curve) -> turns again 90°, and thus drives backwards.

It's quite complex but I haven't got the time yet to fix this bug.

SmallJoker commented 8 years ago

Please re-open when the problem still exists.

Fixer-007 commented 8 years ago

After a lot of testing on ESM I think it was fixed, case closed (for now).