Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rotation script

DoctorWho62 Oh
Registered User
Join date: 4 Jun 2007
Posts: 12
04-23-2009 14:47
Hi All
I'm looking for a rotation script that will rotate a linked set around one prim on touch and in quater turns so that each time it is touched will turn one quater everytime full perms. Please can any one help
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
04-23-2009 15:01
The function you want is llSetRot. Take a look at . To get a 90 degree rotation, you'd need something like

CODE

vector temprot = <0.0,0.0,90.0>;
rotation Rot90 = llEuler2Rot( temprot * DEG_TO_RAD);
rotation NewRot = llSetRot(Rot90 * llGetRot());
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at