Game Development Community

Model rotated 90 degrees and 'cam' joint not working

by Eric den Boer · in Torque Game Engine Advanced · 03/04/2009 (1:02 pm) · 2 replies

Dear community,

We finally were able to make a FlyingVehicle controlled by the player, yay for us - and thanks for the help on that one!!! However, we are now with a different problem and we can't figure it out.

When we spawn the model into the game, it's rotated 90 degrees on it's Z-axis. So we're moving forward, sideways. Why is this and how do we fix it?

We tried:
- To rotate the model in both Maya and Milkshape 3D, however it still wouldn't work.

- Rotating the model in code isn't working properly either.


A different problem is that we can't get the third person camera to attach to the model's "cam" joint. The joint is definately called "cam" and the code from the Game Programmer's Guide Book isn't quite working. :(

Sorry for being so annoying by the way :)

#1
03/08/2009 (7:34 pm)
I dirty fix I used way back is to make sure the cam node is attached to something, so your cam node has orientation.
Basically add another node, camHolder so that cam and camHolder form a full bone and cam will know where it is.
Fragmotion is a great program that I have used in the past to rotate animated players (because Poser used to spit them out 180deg the wrong direction).
#2
03/11/2009 (7:18 am)
Thanks for your help.

We found out that we had different axis as the up axis and it got all weird :)