[SLED] Teleporting using coordinates
pmiller at liverpool.ac.uk
Sat Dec 6 01:02:30 PST 2008
If there is a pressing case for tp using global coordinates, the following may
be a useful start in terms of the necessary info:
Peter [SL: Graham Mills]
From: educators-bounces at lists.secondlife.com on behalf of Rolig Loon
Sent: Fri 05/12/2008 23:21
To: SL Educators
Subject: Re: [SLED] Teleporting using coordinates
The x,y,z coordinates in a SLURL are special descriptors within a sim.
They are the values you would get in a script that uses a llGetPos()
call. In order to get the global coordinates for that same spot (that
is, the coordinates relative to the enitre SL grid), you need to know
the corner position of the simulator that X,y,x lies in. You get that
with call to llGetRegionCorner(). The global coordinates are then the
sum of the two vectors llGetRegionCorner() + llGetPos().
Educators mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Educators