I have read in the lsl wiki and done some experiments but I am not seeing any difference between llRezObject and llRezAtRoot.
Is there any major difference between the two? When would it be better to use one over the other?
These forums are CLOSED. Please visit the new forums HERE
llRezObject vs. llRezAtRoot? |
|
|
Damien1 Thorne
Registered User
Join date: 26 Aug 2007
Posts: 4,877
|
05-09-2009 13:52
I have read in the lsl wiki and done some experiments but I am not seeing any difference between llRezObject and llRezAtRoot.
Is there any major difference between the two? When would it be better to use one over the other? _____________________
As we fade into the darkness...
|
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
05-09-2009 14:13
There is one difference and you don't see it if you rez a single prim.
llRezAtRoot will rez an object with the root at the specified coordinates. llRezObject will rez an object with the objects geometric center at the specified coordinates. For a single prim the two are in the same point. It may or may not be for a linked set. _____________________
From Studio Dora
|
|
Damien1 Thorne
Registered User
Join date: 26 Aug 2007
Posts: 4,877
|
05-09-2009 14:18
Thanks, I only tried with single prims. I will go do more experiments.
_____________________
As we fade into the darkness...
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
05-09-2009 19:51
rez at root seems to be preferred as I don't remember if there's any convenient way to get the geometric center of an object, as opposed to easily getting the root center.
_____________________
|
| . "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... | - |
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
05-09-2009 20:33
Most of the time I just use llRezObject BUT you are limited to rezzing within 10 meters and you can move the root prim and use llRezAtRoot if necessary for better positioning.
I never try to do the math anymore thou. Rez the object, record the position of the rezzer, move the rezzer to the position you want it to be(within 10 meters), record THAT position. Subtract the one from the other and that will give you the rez offset to use. You can see how I added the ability to easily edit the rez offset position in a script here: https://wiki.secondlife.com/wiki/Multi_Item_Rezzer _____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |