How to get G-force data and make a table
Hi Edwyn,
Thats not possible.
MrRC posted on July 29th, 2023
Hi Edwyn,
Thats not possible.
Not strictly true. It is possible, using comparative math. Acceleration can be calculated with each tick - Kw6sTheater understands this stuff better than I do.
This is certainly possible. You can compute a decent approximation to the acceleration of a train as follows:
- For each frame, store the velocity of the train in a Vector3D. You can use the
train.getCarOrientationAndPositionmethod to get the direction the train is facing, and you can usetrain.getSpeed()to get the magnitude of the train's velocity. Scale the former by the latter and you will get a velocity vector. - Compute the difference between this velocity and the velocity of the train in the previous frame.
- Scale this difference by
1/tickto get an approximation to the acceleration vector of the train.
Next, to break this up into vertical/lateral/longitudinal components, you can dot the acceleration vector with the desired component vector. That is, if you want to get the vertical g-force, take the dot product between the train's acceleration vector and the train's up vector, which you can get using train.getCarOrientationAndPosition again. Finally, you need to account for gravity, which you can do by simply adding the y component of the train's up vector. Just make sure to account for the fact that the acceleration calculation is in units m/s, while the gravity component will be in gs.
Then you can print out all these values, and they will be stored in the console, which you can access more easily with the nolimits2_log.txt file.
Airboss posted on August 2nd, 2023
This is certainly possible. You can compute a decent approximation to the acceleration of a train as follows:
- For each frame, store the velocity of the train in a Vector3D. You can use the
train.getCarOrientationAndPositionmethod to get the direction the train is facing, and you can usetrain.getSpeed()to get the magnitude of the train's velocity. Scale the former by the latter and you will get a velocity vector.- Compute the difference between this velocity and the velocity of the train in the previous frame.
- Scale this difference by
1/tickto get an approximation to the acceleration vector of the train.Next, to break this up into vertical/lateral/longitudinal components, you can dot the acceleration vector with the desired component vector. That is, if you want to get the vertical g-force, take the dot product between the train's acceleration vector and the train's
upvector, which you can get usingtrain.getCarOrientationAndPositionagain. Finally, you need to account for gravity, which you can do by simply adding theycomponent of the train'supvector. Just make sure to account for the fact that the acceleration calculation is in units m/s, while the gravity component will be in gs.Then you can print out all these values, and they will be stored in the console, which you can access more easily with the
nolimits2_log.txtfile.
Thats right
Tomek posted on August 11th, 2023
Thats right
Please make sure your posts contribute and are necessary to the discussion, it keeps things clean around here! Not a moderator, however this forum's had a lot of low-quality posts lately.

Hi everyone, good morning/afternoon/night, hope all is well.
there is a problem I'd like to ask u for help with:
I had made a coaster track, but I wanna get the G-force table for the whole track in order to make it more realistic. I know we can see the data like "G-force comb" in "editor" or F2 in "play". but what i wanna to do is export the whole G-force data which in different directions in each unit of time, and make a table about that, what should I do?