Indeed, an accelerometer to determine orientation going into a curve and IR LEDs to determine velocity. This is a perfect application for an Arduino, but.......
OO scale (popular in the UK) is very close to HO scale that I am more familiar with. And there is the rub. We are trying to cram 1 kg of excrement into a 100 gram container. A typical HO car or locomotive is roughly 51 mm high x 38 mm wide. OO gauge is slightly larger. An Arduino board measures 71 mm x 53 mm. Now add a shield for the accelerometer breakout board, and you can see where this is going. On the positive side, the APT and Pendolino vehicles were quite long, so that lends itself to long custom PC boards. That is why I selected the more clunky Picaxe system over Arduino. Adding the accelerometer also adds a requirement for a 3.3 volt on-board regulator.
Have a look at the attached for some ideas on tilting.