Posted by CogKing on February 03, 1998 at 15:58:45:
In Reply to: This might work posted by Raptor [JiB] on February 02, 1998 at 16:50:16:
> If it's a surface defined in symbols
> distance = VectorDist(GetSurfaceCenter(mysurf), GetThingPos(player));
> Alright then, it's just recycled Cogking, I admit it :)
Yeah... :-)
That is the distance from the player to the center of the surface, it is not
the same as the distance from the player to the surface. For reasonably
small surfaces it is OK tho... Real maths for that are kinda horrible with cog.
-CogKing