User Tools

Site Tools


coordinate

This is an old revision of the document!


Coordinate


A coordinate is a scripting data type that represents a 3D position within the current map. The X and Y values correspond to the horizontal position and are measured in tile units, while the Z value corresponds to the vertical position and is measured in voxel units.

Example:

coord[3, -2, 10]

The example above represents the position 3 tiles to the east, 2 tiles to the north, and 10 voxels above the center of the map, or more specifically at the base of the tile with coordinate (3, -2, 10) as displayed in the Map Editor.

In certain cases (for example when supplied to the Move Camera and Look At Target functions and their variations), the X, Y, and Z coordinate values can be specified as decimals with fractional parts in order to fine tune the 3D position.

Example:

coord[0.5, 0.5, 0]

The example above represents the position at the southeast corner of the tile located at the center of the map (i.e. tile (0, 0, 0)).

coordinate.1496093622.txt.gz · Last modified: 2017/05/29 14:33 by justin