ObjectDistance

Category: Objects
Since engine version: 1.0 OC

Description

Returns the distance between two objects. If obj is nil the distance between the calling object and obj2 is measured.

Syntax

int ObjectDistance(object obj2, object obj);

Parameters

obj2:
Second object.
obj:
[opt] First object. Can be nil in local calls.
See also: Cos, Distance, Sin, Sqrt
jwk, 2002-08