Scripting will work for adjusting the Z offset for a shape. The problem becomes all Y movement becomes Z movement. Moving up and down the track will look as intended, but then Y movement from jumping in the air will turn into Z movement as well. I like the idea of using the shadow as an indicator to when not translate Y to Z, though.