horvatha4 wrote:When I add a wheel to the Vehicle, why is important it is a frontwheel or not? This is not so obvious by trains.
Well, I've not been using btRaycastVehicles for some time, but as far as I can remember the wheels marked as 'front' are the ones that can be used for steering the vehicle.
I don't know if you're using the btRaycastVehicle class directly (or you've made a custom class for your train), but I suppose you aren't using the default steering methods to make the train follow the tracks, are you ? If you don't use them, probably you shouldn't worry about which wheel is marked 'front' or 'rear'.
As far as the coordinate system problem is concerned, I've always used the default one (the one used in appVehicleDemo): the x-axis is the lateral axis and the z-axis the front-back axis AFAIR. I suggest you rotate your model if you experience problems.
horvatha4 wrote:call setCoordinateSystem( 0,1,0 ) and the wheels turning perfectly
Well, I still suggest you use the default settings: from the video it seems that the train slows down too much on curved tracks.
P.S. I still haven't completely understood how you make your train steer using additional lateral raycast results to keep it on the track (I'm not sure if it's possible to simply add 'ray-wheels' with a different direction to the same vehicle or not: should that work, you shouldn't use any steering method at all).