Jump to content
Sign in to follow this  
dmarkwick

General confusion over XYZ coord standard

Recommended Posts

Looking at mission.sqm files, it seems to me that the positional coords are in XZY format. I've noticed the same thing in config settings too.

Whereas the general scripting standard is XYZ.

Anyone notice this, and have any reason why this is so?

Share this post


Link to post
Share on other sites

In various systems various coordinate systems are used. What we use internally may be even more confusing to you:

X Y Z, where X is right, Y is up, Z is forward

This closely corresponds to the coordinate system used in 3D rendering.

As in scripting you are often concerned about 2 coordinates only (right and forward, or east and north), for scripting we swapped the last two, made [X Z] equivalent to [X,Z,0], and made most coordinates relative to terrain.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×