Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Floating Object on Rezz

Mikhail Pasternak
Registered User
Join date: 1 Oct 2005
Posts: 54
04-14-2008 15:09
When I rezz a door/doorframe object, it rezzes 10m above the ground. I've looked inside of the script, I don't see anything that would cause this. Any ideas on what is happening here ?

Thanks,
Mikhail Pasternak
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
04-14-2008 16:36
Are there any cut prims in the object? When you cut a prim, even though it appears to get smaller, its bounding box remains the same size. Thus it's very common for objects with cuts to rez off the ground.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Thili Playfair
Registered User
Join date: 18 Aug 2004
Posts: 2,417
04-15-2008 03:14
Id check for height on script rez from prim, or where the rezzed object root prim is, may be lower then rest, and what he said, dont use cut prims as root either.
Mikhail Pasternak
Registered User
Join date: 1 Oct 2005
Posts: 54
Thanks
05-08-2008 19:35
Thanks for the Answers,
Mikhail
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
05-09-2008 06:00
Your U-shaped door frame uses a cut cube prim, and you only see half of it. So it will rez as if it was sitting on the whole prim. For example, if I make a park bench, and use a half of a circle for the legs, and that circle is 1 meter in diameter, the bench will rez 0.5 M too high.

The solution is to add a script to the chair (or to your door frame) that adjusts the height after it rezzes. Here is a simple script for that:

From: someone
// adjust this height
float adjustHeight = -0.5; // how much the position should be adjusted when the object is rezzed. (m) -

default
{
on_rez(integer x) {
vector v = llGetPos ();
v.z = v.z + adjustHeight;
llSetPos(v);
}
}


Just add this script to the item, and change the "adjustHeight" variable as needed. As shown above, it moves the item down 1/2 meter.
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.