Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llRezObject Problem with coordinates???

Jacks Sparrow
Registered User
Join date: 17 Aug 2006
Posts: 6
06-17-2007 05:12
Hello to all

is there any problem with the coordinates when a Linked set rezzed???
when i rez a single object then everything seems fine, but when the rezzed object is a linkset then the seems like the llGetPos have an offset

did anyone else notice that , or i am the only one???

Thanks
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
06-17-2007 06:27
Is what you're seeing due to the difference between llRezObject() and llRezAtRoot()?
Jacks Sparrow
Registered User
Join date: 17 Aug 2006
Posts: 6
06-17-2007 09:39
llRezObject("something",llGetPos(),ZERO_VECTOR,llGetRot(),0);
Jacks Sparrow
Registered User
Join date: 17 Aug 2006
Posts: 6
06-17-2007 09:40
no friend, is verry strange, small offset that i cannot understand why that happens
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
06-17-2007 10:42
From: Jacks Sparrow
no friend, is verry strange, small offset that i cannot understand why that happens


use llRezAtRoot instead. llRezObject doesn't quite obey the geometrical center (despite what the wiki says). llRezAtRoot will place the root prim of what you're rezzing at exactly the position you specify.
_____________________
My SLExchange shop

Typos are forgiven; desecrating the english language with reckless abandon and necrophilic acts is not.


The function is working perfectly fine. It's just not working the way you wanted it to work.
Jacks Sparrow
Registered User
Join date: 17 Aug 2006
Posts: 6
06-17-2007 10:54
But.... i need to rez the link set to the specific child prim position and rotation....
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
06-18-2007 03:42
So... the script is rezzing a *linkset*, not a single prim, right? (Try as I might, with weirdly tortured single rezzed prims and whacky rotations of the rezzing object, I couldn't get llRezObject() to suffer detectable compounded floating point rounding error.)

So, you definitely want to use llRezAtRoot(). Perhaps the confusion is that the "root" is the root prim of the *rezzed* object--not the rezzing object--so you can put that root prim at the pos & rot of a child of the rezzing object, if that's what you want.