Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rote prim around one edge

Gregory McLeod
Registered User
Join date: 21 Oct 2006
Posts: 278
08-16-2008 13:24
The answer to this newbie question has escaped me. How do you rotate an object (prim) around one edge. For example a door has a vertical hinge so how do you rotate the door prim around it?
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
08-16-2008 17:39
Either attach a prim that has its center at that edge, and use that prim as a hinge (put the rotate script in it), or path-cut the prim so its center is on the edge. You can create a "hinge" edge of a rectangular door by quartering the prim with path cut.
Bloodsong Termagant
Manic Artist
Join date: 22 Jan 2007
Posts: 615
08-18-2008 08:38
heyas;

if you cant possibly cut it or parent it to something (flexi-wings, for example), you can look up my RotFromEdge function, posted around here on the forums.
_____________________
Why Johnny Can't Rotate:
http://forums.secondlife.com/showthread.php?t=94705
Gregory McLeod
Registered User
Join date: 21 Oct 2006
Posts: 278
08-18-2008 12:27
From: Bloodsong Termagant
heyas;

if you cant possibly cut it or parent it to something (flexi-wings, for example), you can look up my RotFromEdge function, posted around here on the forums.
Thanks for the info but from what I read there are still problems you are working on so I'd rather stay away from developing code based on untried scripts. No offence intended but I don't have time to debug your code as well as mine.
Thanks for the thought anyway.
PS The suggested solutions worked fine I just have to refine the shape of the cut block object.
Bloodsong Termagant
Manic Artist
Join date: 22 Jan 2007
Posts: 615
08-22-2008 06:42
heyas;

actually RotFromEdge() is done and works fine. as long as you use the latest (bottom) one. the RotFromEdge3.... is still wonky, but a different function, really.


i suppose i should put the final RotFromEdge in the actual library....