Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Box with lid

Thor Effingham
Registered User
Join date: 8 Dec 2007
Posts: 3
12-16-2007 13:37
I am trying to make a box with a lid that swings open via a
script.

I tried rotating around the lid with llSetLocalRot but of course
it rotates around its origin.

I made a hinge and rotated the hinge like I have seen in door
scripts but this only works if the lid/hinge are not linked to the
box.

Any suggestions or examples?

-- TE
Xhawkx Holden
Registered User
Join date: 1 Nov 2006
Posts: 86
12-16-2007 13:40
instead of a hinge object.. Use a single box prim.. stretched twice as wide as high, and cut it in half. Then the rotation axis will be on an edge (the edge facing the true center of the prim)
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
12-16-2007 13:49
Or if your shape mandates that you cannot use a cut prim, you can apply Sue Stonebender's wonderful scripting logic from here:

/54/88/138014/1.html
Thor Effingham
Registered User
Join date: 8 Dec 2007
Posts: 3
12-16-2007 14:17
From: Baron Hauptmann
Or if your shape mandates that you cannot use a cut prim, you can apply Sue Stonebender's wonderful scripting logic from here:

/54/88/138014/1.html


Thanks - very interesting. The cut prim worked for me however.

Thanks for helping newbie scripter...

-- TE