|
Esch Snoats
Artist, Head Minion
Join date: 2 May 2006
Posts: 261
|
04-15-2007 09:19
I'm building a castle prefab for my store and ran across a problem. I have arched doorways inside the castle, so I built a door to fit, but the problem is the pivot point is on the inside edge and not the outside, so I can't hook up a door script to it and get it to open and close properly because of it.
The reason the pivot point is on the inside is because the curved portion of the door (2 prims total) that is on top is actually 1/4th of a circle prim, so this pivot point is where the center of the prim would be if it were a full circle.
Any advice on how to get around this? I've attached a snapshot so you can see what I'm talking about. Thanks!
E
|
|
Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
|
04-15-2007 09:56
Make the rectangular part of the door the primary prim? At the moment it's the circular part...
|
|
Esch Snoats
Artist, Head Minion
Join date: 2 May 2006
Posts: 261
|
04-15-2007 10:40
Actually I tried both ways, it always lands the pivot point in the same place regardless which one becomes the master prim.
|
|
Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
|
04-15-2007 11:13
All my "difficult doors" I tend to use the Timeless Door Script... then you just have to specify the open and closed positions... you don't need a pivot point.
There may then be issues with packing up as a prefab I guess....
|
|
Renee Roundfield
Registered User
Join date: 10 Mar 2006
Posts: 278
|
04-15-2007 11:14
Well, the easiest way is to add a prim hinge. I sent you a door in game that repositions the pivot point to the outer edge of the door without adding another prim, but it's very thin.
|
|
Esch Snoats
Artist, Head Minion
Join date: 2 May 2006
Posts: 261
|
04-15-2007 13:48
Thank you very much!! I will check it out the next time I get in game.
E
|
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
04-15-2007 14:45
The second easiest way is to cut the rectangle in half. Set the cut begin and end to 0.125 and 0.625 respectively. Rotate the prim so that the axis is where a hinge would be. Resize the door to fit, relink with the rectangle as the root. Use any simple rotating door script.
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
04-15-2007 15:12
Yes, torture the box prim so that its center is where you want the door hinge, and link the cylinder to it with the box as root. Rotation caused by script functions or entering numbers in the edit window will cause the linkset to rotate about the root's center, not the pivot center shown in edit mode, which the linkset will rotate about using the rotation gadget.
|