Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trains can "fly" #459

Closed
Velvas opened this issue Dec 5, 2022 · 3 comments
Closed

trains can "fly" #459

Velvas opened this issue Dec 5, 2022 · 3 comments

Comments

@Velvas
Copy link

Velvas commented Dec 5, 2022

Info
Please provide the following information:

  • BkCommonLib Version: Unsure, but most likely latest
  • TrainCarts Version: Last version before start of october
  • Server Type and Version: Paper, 1.18.2

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
Copy link
Member

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
Copy link
Member

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

@bbayu123
Copy link
Collaborator

bbayu123 commented Jun 8, 2023

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

@bbayu123 bbayu123 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants