Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rotorating prim on touch

Soyo Kongo
Registered User
Join date: 22 Oct 2005
Posts: 11
12-10-2006 03:54
I'm trying to make my prim rorate and move from point a to pint b. I cant figure how to make it rorate but I got the move from point a to b.

Anyone know how?

the code I'm using:

default
{

touch_start(integer total_number)
{
vector closedPos = llGetPos();
closedPos.z += 20.0;
llSetPos(closedPos);
state open;
}
}

state open
{
touch_start(integer num)
{
vector openedPos = llGetPos();
openedPos.z -= 20.0;
llSetPos(openedPos);
state default;
}
}
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
12-10-2006 04:13
llGetRot() and llSetRot()
Soyo Kongo
Registered User
Join date: 22 Oct 2005
Posts: 11
12-10-2006 04:48
Thanks!