bergerhealer / TrainCarts

Minecarts redefined
MIT License
201 stars 62 forks source link

trains can "fly" #459

Closed Velvas closed 1 year ago

Velvas commented 1 year ago

Info Please provide the following information:


Bug Trains continue to move while in air when launch is high

Description When using /launch and doing a large number such as 10000000 trains will contiue in the air forever even is the max speed is low

Expected behaviour fall off after a certain distance

Actual behaviour continue moving in the air without losing height

Steps to reproduce (Max speed set to 50m/s) Place rails high up, use /train 1000000000000 in a minecart

bergerkiller commented 1 year ago

reason is that it performs gravity calculations on the original velocity values. So with such a high velocity, the relative amount which goes towards the y-motion is very small. At the max speed calculations that disappears to near-0.

Probably could be fixed by taking maximum speed into account for gravity calculations, though that might break some existing coaster designs maybe? Idk

bergerkiller commented 1 year ago

If this is about a scheduled "jump off" point, you could probably counter-act this by changing the gravity property to something high.

bbayu123 commented 1 year ago

Closing issue, not a bug. If you want to eliminate the phenomenon, maybe adjust the speed/energy or adjust the gravity of the train.