# Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

### 3 Dimensional Chat / Rotating objects a bit odd

Message
Posted: 18th Dec 2002 15:31
I'm trying to make a basic flying simulation.

The problem I am having is that my plane doesn't seem to roll correctly. I am using "rotate object".

changing Y angle makes the plane yaw, changing X angle makes the plane pitch. So if I now set X to a constant and rotate the plane through 360 degrees about Y axis the plane will yaw at a constant pitch.

So I would expect Z would make my plane roll but it doesn't work as I expect. If I set X (pitch) to 0 and Z(roll) to a constant then rotate the plane around the Y axis I get the following: The plane is rolled when Y=0 and 180 and the plane is pitched when Y=90 or 270, with varying combinations at the intermediate angles.

So if my plane is yawed (Y) to 90 degrees it seems as though changing both X and Z angles will make the plane pitch with no way to make it roll.

Has anyone experienced this and know what I may be doing wrong?
Posted: 18th Dec 2002 15:44
Damn these DB guys have thought of it all! I thought roll and pitch would be controlled by rotate angle but they only gone and got pitch and roll commands.

Posted: 18th Dec 2002 16:10
from what I remember patch 4 fixes those issues which will be out next month or later

Posted: 18th Dec 2002 16:21
I see, I'm using the demo at the mo.

I've found that I can make a object rotate with "rotate object", I can make it roll using "roll object", but I seem unable to use both together. Is this also an error?

Posted: 18th Dec 2002 16:22
never used the demo

Posted: 18th Dec 2002 17:23
Roll object from what I've seen is a built-in heuler while rotate object/camera can be used to make your own...You'll need very basic trigonomoetry and understanding of 3d XYZ space coords.to achieve it but it's much better this way.

Check out the mouselook code i posted there.....

Just remember that you're standing on a planet that's evolving
And revolving at nine hundred miles an hour!
Posted: 19th Dec 2002 15:06
Cheers, I got it sussed. Ordered the full DB Pro package now too - I love it, just what I've been looking for

Posted: 19th Dec 2002 16:10
great