Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Inaccuracies in llRezObject placement

Tommy Oz
Registered User
Join date: 13 Jan 2005
Posts: 56
02-05-2005 14:31
I am getting inaccuracies in the placement of objects with llRezObject between the parameters passed to the function and the final placement of the object.

For example, is one test one parameter was:

<176.00000, 231.00000, 62.00000>

and the actual placement of the object was at:

<175.464, 232.641, 62.233>


What might be the cause of this variation?
Aleksandr Martov
The Artist
Join date: 12 Jun 2004
Posts: 86
02-05-2005 14:37
Just a guess, but might it be because RezObject is using the root prim, but your getting the overall position of the object (or vise versa)

Are you using a lone prim for this test?
_____________________
I got monkies in me!
-Gir
Upshaw Underhill
Techno-Hobbit
Join date: 13 Mar 2003
Posts: 293
02-05-2005 16:11
From the WIKI

From: someone
When rezzing a linked set, pos specifies the geometric center, which can be determined with llGetGeometricCenter (when called from the object that is to be rezzed, so you'll have to store this information somewhere).


of course this is problematic because:
Also from the Wiki

From: someone
Works perfect for complex objects with 2 prims, but any more than two and it's off (significantly). Even three basic cubes offset along three axes with no rotation gives a problem. I'm really trying to conserve prims by using auto rezzing, but it's still very frustrating. The other few functions that came with 1.5 seem about as useful. - Ready


One solution (other than not using anything but single, unlinked prims) is to have the item settle itself into it's absolute position with an llSetPos loop which doesn't use the Geocenter thankfully.

L8r,
UU
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
02-05-2005 16:21
*clocks all of them on the head*

llRezAtRoot
It will do what you want.
Same syntax as llRezObject
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Upshaw Underhill
Techno-Hobbit
Join date: 13 Mar 2003
Posts: 293
02-05-2005 20:27
I was under the impression that RezAtRoot still had it's 'anchor' requirement quirks.
Tommy Oz
Registered User
Join date: 13 Jan 2005
Posts: 56
02-06-2005 05:01
What is the Anchor Requirement?
Upshaw Underhill
Techno-Hobbit
Join date: 13 Mar 2003
Posts: 293
02-06-2005 10:11
Click the llRezAtRoot link.

The Wiki is your friend.

L8r,
UU