Currently I'm trying to make the trains obey gravity (acceleration/deceleration), but in the near future I'd like to do other things like have the station platforms work like they should (slow train, briefly stop, restart).
The problem I'm having is I'm not 100% sure how to get relevant information about a roller coaster car or the entire train. Current speed was easy (
this->speed I believe), but some more useful things would be
- angle of the car compared to horizon (I was hoping z_der would give me this, but that doesn't seem to be the case...maybe I'm not understanding whats in the variable properly)
- what type of track is below this car
- what type of track is ahead of this car/train (important for hill lifts)
- weight of car (not implemented yet I assume?)
- position of car in train (if multi-car trains are implemented yet)
I wanted to post here to see if anyone could give me some guidance. I'm working through the code to look for clues, but I'm not sure the solutions I'm finding for getting this information are the best ones.
Thanks!