Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rotation question

Alazarin Mondrian
Teh Trippy Hippie Dragon
Join date: 4 Apr 2005
Posts: 1,549
05-07-2009 00:18
I built a stage that rotates. Unlike my previous rotating stages which are 'flat' or horizontal this one is 'vertical' and rotates around a spindle fixed to the back wall. When it's aligned North-South everything's fine and looks as it should. However as soon as I rotate the stage assembly, the build rotates correctly but the rotating movement of the stage doesn't. It still attempts to spin lazily in the same East-West plane perpendicular to it's original North-South alignment.

Is there a way to ensure that objects always rotate in the same plane relative to the build rather than the same absolute plane relative to the grid *without* having to edit the rotation script manually each time?
_____________________
My stuff on Meta-Life: http://tinyurl.com/ykq7nzt
http://www.myspace.com/alazarinmobius
http://slurl.com/secondlife/Crescent/72/98/116
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
05-07-2009 01:19
Rot * llGetRot()
will apply your local rotation to the objects regional rotation.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Alazarin Mondrian
Teh Trippy Hippie Dragon
Join date: 4 Apr 2005
Posts: 1,549
05-07-2009 16:24
I tried it but it didn't work. Probably because I did something wrong. Thanks anyway,
_____________________
My stuff on Meta-Life: http://tinyurl.com/ykq7nzt
http://www.myspace.com/alazarinmobius
http://slurl.com/secondlife/Crescent/72/98/116
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
05-07-2009 16:46
Possibly a code snippet would help solve your problem.
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-