I have implemented a vehicle (from Bullet's VehicleDemo) in the GameEngine. I have run into some trouble: I'm reading the wheel's Bullet transform and sending an event with the opengl transform so that the game entity/node for the wheel will be displayed... it is positioned correctly but the rotation is not quite right, it's 90 degrees wrong in the z-axis and I can't understand why (the wheel model is looking fine rotated in my modeling tool)... must I do something with the rotation when reading out the opengl transform (from the Bullet transform) and creating the float* array for sending for display? Btw, when I display the wheels as cylinders in GLPhysicsView.cpp (from Bullet's opengl transform, gotten from btTransform) it looks correct.
I hope I made myself clear.... any help on this matter is very welcome. Thanks in advance!
|