1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you are going to register on XLNation, please make sure you do not use a proxy server.
    If you use a proxy server your registration will most likely get blocked due to spammers and hackers using proxy servers to hide their real IP address.

    If your using your home or work IP address and have not received your registration email, check your spam folder.
    PLEASE DO NOT ASK TO HAVE YOUR ACCOUNT DELETED IF YOU HAVE POSTED IN THE FORUM! If so we do not delete accounts due to the mess it can make on the forum.
    Dismiss Notice
  3. Please see the following thread for more information
    XLN's future is looking bad

Tutorial Rotation Coordinates Explanation

Rotation coordinates explanation - Original Author: Monty

  1. Monty
    Original Author: Monty
    Placing furniture, trees and actors with precise coordinates in our custom lots it's quite easy, we just need to use the regular X,Y,Z coordinates. But when you want rotate an object probabably you, as myself, find out with a mysterious four coordinates with strange numbers that confuse you. Like this: <Rotation>1.07071e-007,6.18172e-008,0.258819,0.965926</Rotation>

    What the heck is that?
    Well, that has a name and it's called "Quaternation rotation coordinates".

    Why the game don't use just the X,Y,Z coordinates?
    Because it has some limitations and most 3D game engines use quaternations .Quaternation uses complex numbers and it's almost impossible for a non mathematical guy like me to know what they mean. So I will not explain what the heck they are, if you want to know more about them read this Wiki article: http://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation

    So what's the point of this guide? Do you have any solution?
    Yes, I'm as lazy as you for mathematics so I'm gonna tell you how to convert X,Y,Z rotation coordinates to the quarter...quacker...wathever, that CXL use.

    Does it really have to be that complicated?
    Not really, if you want to do the most basic and common rotation (Z axis rotation) just copy and paste these coordinates to get the same result on the object as you see in the picture.

    0 degrees

    45 d

    90 d

    180 d

    225 d

    270 d

    315 d

    I want to make rotations in other axes or more complex and precise rotations. How can I get those values in quakers quaternions?
    Altiris found this tool which allows you to convert X,Y,Z rotation coordinates to quaternation rotation coordinates:

    kipate, Mr.X², Lokentaz and 2 others like this.

Recent Reviews

  1. Birk LeGlaire
    Birk LeGlaire
    Without this guide, no chance to anderstand!
    Very useful!
  2. Drazicdesign
    I use your tutorial right now to modfifier files from the original game!
    Thank you,
  3. nicko2u
    yep most useful over the years
  4. bobqwerty
    It sure come in handy while creating layout files. thanks