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.

Newcomers DBPro Corner / Queston About Coordinate Axis of Rotation Commands

Author
Message
puppysss
17
Years of Service
User Offline
Joined: 13th Mar 2007
Location: UnCyber Space
Posted: 27th Oct 2009 12:29
I'm anxious Which Any Axis be used by Commands.
Could I ask to you? If I can,

-Which X/Y/ZRotate Command use Local Axis or Global Axis exactly?
-Also rotate camera x,y,z use local or global?
-Pitch/Turn/Roll Camera use Local or Global?
-Recently,I test that XRotate Camera.But XRotate Camera Or Rotate Camera x,0,0 like that It's always the same direction.
So Rotating Other Axis,It's rotated the same act and direction still.Why It is?

I thank all of your answers.

DEFCON CRISIS comming soon 2009~~!
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 27th Oct 2009 14:32
Using the normal rotate object/camera commands, X is always local, is global, and Z is local.. I think.

To achieve complete local rotation, use the free flight commands.

"everyone forgets a semi-colon sometimes." - Phaelax
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 28th Oct 2009 02:47 Edited at: 28th Oct 2009 02:53
Quote: "-Also rotate camera x,y,z use local or global?"

It will rotate X first, then Y, then Z

Quote: "-Pitch/Turn/Roll Camera use Local or Global?"

Local

Quote: "Recently,I test that XRotate Camera.But XRotate Camera Or Rotate Camera x,0,0 like that It's always the same direction."


Try

Rotate Camera 1,0,0
and
Rotate Camera -1,0,0

it's easy to test things like this with a few lines of code, for example...



puppysss
17
Years of Service
User Offline
Joined: 13th Mar 2007
Location: UnCyber Space
Posted: 28th Oct 2009 09:43
Thanks! Now,I know Excatly!
So If I want to use only X or Z axis,Is This code right?



DEFCON CRISIS comming soon 2009~~!

Login to post a reply

Server time is: 2024-11-24 00:59:24
Your offset time is: 2024-11-24 00:59:24