I think there was an issue with the dynamic center of mass, due to the design of Bullet physics it also moved the collision box, or something like that. Need to look at that again. What are you trying to achieve?
This:
To make a bike stand right I need to be able to move the CoM, especially when turning. In real life the driver moves a little left or right to move the CoM in the right position but in Outerra there's no driver.
Currently I placed it at z=0, so when I don't turn it doesn't fall but I usually can't make more that 100 meters without it falling.
Since we are on a sphere, position of the vehicle is a vector from the center to the vehicle. Normalizing it will give you an up vector. But a single vector doesn't make a coordinate space, so ... what are you trying to achieve?
I haven't fully though how, but I think to move the CoM in the right place I need to know how much the bike leans to the left or right, which is the angle between the model z axis and the gravity vector.
Then there's also the centrifugal force in the play but as i said i haven't given it a full thought, i'm still working on the model.