Skip to content

World Coordinate System

yesfish edited this page Jan 9, 2015 · 11 revisions

World

World coordinates are independent from screen coordinates, allowing the player to scroll and zoom the playfield. They represent actors, special effects and anything not related to the GUI.

WPos ( X, Y )

Location in the game world.

WRange ( Range )

Distance from a WPos origin.

WVec ( X, Y )

Offset from a WPos origin.

WRot ( Roll, Pitch, Yaw )

Three axis rotation with 1024 steps per axis.

WAngle

Single axis rotation with 1024 steps.


Cell

Cell types are used to represent building footprints, unit paths, overlays and terrain information. Cells will typically contain one unit (or five infantry), although this isn't always the case. The Map class contains methods that can use cell information such as CenterOfCell () which returns world coordinates.

CPos ( X, Y )

Location on a grid.

CVec ( X, Y )

Offset from a CPos origin.

Map (Isometric)

Can be converted to and from CPos.

MPos ( U, V )

Location on a map.


Images

Courtesy of Phrohdoh

Various

Various demonstrated

MPos

MPos demonstrated

Players ๐ŸŽฒ

Modders โœ๏ธ

Developers ๐Ÿ”ง

Clone this wiki locally