Colobot Wiki
Advertisement

Syntax:
distance2d ( pos1, pos2 );

Calculates the distance between two positions (ignores the z coordinate).

pos1, pos2: point
Coordinates of the two positions.

Return value: float
Distance between the two positions.

Advertisement