This impossible roller coaster https://www.babylonjs-playground.com/#SQFG0Q#6 is built from a new function I have developed that builds a track that also contains data on the orientation of any mesh that follows it. You set this orientation data as you wish over sections of the track. It is also possible for a ‘passenger’ in the carriage to turn (relative to its local y axis) to look around as it travels with the carriage. You can see that the passenger turns to look at its friend in red as it starts its ride. This PG gives an overview of the coaster https://www.babylonjs-playground.com/#SQFG0Q#5 .
The data in the track is also used to build the roller coaster rails and sleepers. Over the next week (or so) I will write how to build with the track and details of the function’s coding and PR these into the snippets section of the docs.
At some stage I might even write an editor to make building a track easier. Happy playing
EDIT: I really should mention that I was inspired, as I often am, by one of @Wingnut’s ‘can we code Babylon.js to do this’ suggestions. Often like to give them a go.