Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetLocalRot question

Malevolent Svarog
I make stuff
Join date: 5 Mar 2005
Posts: 38
10-21-2005 15:00
I'm still a novice at scripting, so please bear with me if this question is pretty basic.

I'm building a cabinet with doors on the front that swing open. Since I'll be selling this object I want to make set up as easy as possible for my customers, so I've linked the doors to the cabinet itself and have written a rotation script for them using llSetLocalRot. I made the doors from prims cut in half to force the axis to the edge, so they swing open smoothly and naturally.

Here's my question: is there a way to add a prim handle to the door and have my script recognize the door and handle as, say, a linked subset of the total linkset so llSetLocalRot will rotate the door AND handle together?

Thanks in advance for the help.
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
10-21-2005 15:41
Um, no.

If the doors were separate they could be a hinge+door+handle, or even just door(cut)+handle and work.

There are ways to rotate around other points, but they're rarely that convincing in my experience, as a moving door part say, even though mathematically they do the right job.

If your door is of the right sort, and the handle too, you could do it with a texture. I've got a glass door somewhere that's one prim - a texture of glass+push panel on the door and it works just fine.