|
Melvin Rowlands
Registered User
Join date: 1 Sep 2007
Posts: 12
|
11-24-2007 17:49
I've noticed that when objects are returned to me when they go offworld, sometimes they are missing z coordinates (if they're underground?) Does that mean that objects which happen to shoot off to the side no longer have x and y coordinates, and that llGetPos() doesn't work anymore?
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
11-24-2007 19:47
I'm not sure what you mean by 'missing' z co-ordinates. You more or less have to specify 3 values (a vector) or it wont compile. Do you mean you forgot to set a z co-ordinate? hence, the variable is essentially zero? If that's the case, the item might be residing at <x,y,0>. Which, is not offword. It's most likely underground, but, you can view it by removing the surface patch from the debug menu. Client, render types, surface patch, and you'll see the item down below. Now, if an object goes outside the valid range for a region (x, y or z is < 0 or > 255), then one of two things will happen. It'll either go into another region if it's on the mainland, or a multi island sim setup, or offworld if there's no region to enter, hence, it gets returned. Me personally, I've sent stuff offworld from the middle of the mainland.. lol
|
|
Melvin Rowlands
Registered User
Join date: 1 Sep 2007
Posts: 12
|
11-24-2007 20:37
No, when objects are returned to your inventory, there's usually a green message that appears in you chat box... object has been returned to your inventory...blah blah blah because it went offworld at < vector >. Usually, if the object happens to go offworld underground, it doesn't return a z coordinate. (like, <26, 26, >  I've also noticed that llGetPos doesn't seem to function once the object is offworld, which seems to further my point that coordinates don't work the same offworld.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-24-2007 22:06
From: Melvin Rowlands No, when objects are returned to your inventory, there's usually a green message that appears in you chat box... object has been returned to your inventory...blah blah blah because it went offworld at < vector >. Usually, if the object happens to go offworld underground, it doesn't return a z coordinate. (like, <26, 26, >  I've also noticed that llGetPos doesn't seem to function once the object is offworld, which seems to further my point that coordinates don't work the same offworld. the message is just parsing the info that it gets, if the info is out of range, it returns nothing for that coordinate... similarly getPos won't return anything for that vector if there is no reference for it... the coodinates you do get should be specifying the point it hit the edge of the world... the lack of a z tells you it fell off the top or bottom, once the item is rerezzed normally getPos should work fine, it's just that objects offworld don't actually exist and so any data they report is just leftovers from the sim that was handling them last
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Melvin Rowlands
Registered User
Join date: 1 Sep 2007
Posts: 12
|
11-26-2007 00:48
Ok thanks guys :]
|