Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Smooth Door Swing within a Linked Set

Al Bravo
Retired
Join date: 29 Jun 2004
Posts: 373
01-25-2006 03:07
I know the old hinge trick when the door is standalone and not linked to anything. But what about a cabinet? The door is part of the cabinet link set. I can setlocalrot & setpos but the motion is "turn then move". The final position is right but the motion looks bad. I don't want to unlink/link if I can help it due to the perms dialog. I was thinking about using a 50% cut piece to change the center of rotation but the cabinet door is already using cut for a specific look. Anybody have any other methods?
_____________________
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
01-25-2006 04:08
Rethink the cuts, possibly with some smart texturing?

Cheat and have the doors unlinked automatically (it's ugly I know).

The slide and twist motion it's that good really although it's possible if you did it in several smaller steps it might work OK I guess.

If it's not a real door (one avies have to go through) then you could do it with extra prims and changing alphas/textures etc.
Ben Bacon
Registered User
Join date: 14 Jul 2005
Posts: 809
01-25-2006 06:19
From: Al Bravo
I was thinking about using a 50% cut piece to change the center of rotation but the cabinet door is already using cut for a specific look. Anybody have any other methods?
Have you tried dimpling it? Turn it into a sphere add 0.5 begin or end dimple, and change it back into a box.

You will need to adjust your texture afterwards. I don't know what specific look you have cut for, so I can't promise that your cutting will still work as expected, but it's worth a try.
Al Bravo
Retired
Join date: 29 Jun 2004
Posts: 373
01-25-2006 07:02
It was a cabinet door with a glass center which I couldn't use texturing for. So I ended up with a 3 piece door: a sideways U, the glass, and a vertical beam for the right side to close the U. All were cut 50% and they communicate as to when to swing. It is a bit prim heavy for a cabinet door but it looks natural when it swings and I am able to dynamically modify textures on it and it remains linked - so it worked out for me. Thanks for the help.
_____________________
Lit Noir
Arrant Knave
Join date: 3 Jan 2004
Posts: 260
01-25-2006 08:38
Well, looks like you already got the cut solution working, but...

When I did this for some windows (something like 25 or so all needing communication, no way in hell was going with unlinked objects), I did the SetPos and SetRot thing as well. To get around the delay factor, I just broke the position and rotation sections into different scripts. The motion is a LOT more fluid, not quite perfect, but could be good enough for other projects. But then you might already have tried this.
Al Bravo
Retired
Join date: 29 Jun 2004
Posts: 373
01-25-2006 08:42
Lit,

Thanks. No I hadn't thought about parallel scripts for motion. Once we are back up I'll see how that works. It might save me 1 prim per door.
_____________________