Hi all,
OK, heres my problem. Im developing a basic aeroplane flying through the sky. So far, I just have the plane flying. The only thing is its flying the wrong way. I have modeled two planes in 3d max. when i import the first plane and fly it, it flys grand. (when i press left key, it goes left, when press up, plane goes forward. etc), but when i import the second plane instead of the first, and try fly that, when i press the up key to go forward, the plane goes down (not backwards, downwards). Does anyone know where in my code I should fiddle around with to get the second plane flying perfect?
ps. im really really stuck on this one. :(
Thanks to you all for you replies, in advance. :)
Anonymous_Joe
Direction Vector
Started by anonymous_joe, Mar 08 2006 06:39 PM
2 replies to this topic
#1
Posted 08 March 2006 - 06:39 PM
#2
Posted 08 March 2006 - 07:59 PM
I found the problem! It's on line 1362 of CAirplane.cpp.
:whistle:
Seriously though, without anyone here being able to see any of the code, how can you expect anyone to help?
I do find it very strange that loading a different mesh would alter your input handler though... They should be in very unrelated parts of your code.
:whistle:
Seriously though, without anyone here being able to see any of the code, how can you expect anyone to help?
I do find it very strange that loading a different mesh would alter your input handler though... They should be in very unrelated parts of your code.
#3
Posted 08 March 2006 - 09:41 PM
Hi there.
This is just a guess, but maybe your models aren't defined in the same coordinate systems ? Usually, you have one axis as forward, one as up, and one as right. Now, in 3D Max, this could mean that your front axis is the positive x axis. When modelling another plane, you might accidentally have it facing into the negative x axis, so it would seem to a third person observer that the plane is flying backwards.
Try mirroring your mesh in 3D Max, and see what it results in.
Alternatively, if you are using a transform stack, make sure you push / pop properly around the code that renders your mesh.
Hope this helps,
Cheers,
- Wernaeh
This is just a guess, but maybe your models aren't defined in the same coordinate systems ? Usually, you have one axis as forward, one as up, and one as right. Now, in 3D Max, this could mean that your front axis is the positive x axis. When modelling another plane, you might accidentally have it facing into the negative x axis, so it would seem to a third person observer that the plane is flying backwards.
Try mirroring your mesh in 3D Max, and see what it results in.
Alternatively, if you are using a transform stack, make sure you push / pop properly around the code that renders your mesh.
Hope this helps,
Cheers,
- Wernaeh
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











