Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llDetectedPos() questions (serious question)

Rotten Thatch
Registered User
Join date: 28 Mar 2005
Posts: 21
06-07-2005 10:34
I was reading in the Wikki and there was an interresting question that arose...

With llDetectedPos, it detects the position of the detected object (duh!) but is that position relative to the position within the similator containing the detected object, or the sensor?

IE, if the person is sitting across a sim border at <254, 254, 4> and a sensor at <1, 254, 4> detects them from the corner of the adjacent sim will the detected person be detected at <-1, 254, 4> (position in relation to sim of sensor) or at <254, 254, 4> (position in relation to sim containing the person). I am going to probably answer this myself, seeing as that if it is in relation to the sim of the sensor that presents some issues with things I am working on... but an answer for the public and an addition to the Wikki would be useful. Oftentimes it is useful to restrict objects to staying and acting ONLY in the sim they were executed in (like pushes in sims like rausch...)
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
06-07-2005 14:05
it is relative to the sim coordinates.
_____________________
i've got nothing. ;)
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
06-07-2005 14:08
More specificly, its relative to the simulator the sensor is in.
==Chris
_____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
Rotten Thatch
Registered User
Join date: 28 Mar 2005
Posts: 21
06-08-2005 10:05
thanks... it would be nice to have one that restricts itself just to the simulator the sensor is in though...