|
MCM Villiers
Registered User
Join date: 7 Oct 2007
Posts: 39
|
12-12-2007 21:01
Is it possible and if what is the code to do I? I am trying to make a sliding canopy for a plane and I cannot it move correctly. Any ideas/suggestions/fixes ?
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-12-2007 21:20
I'm guessing your canopy moves off at an angle when the plane is not perfectly lined up?
the formula is: currentPosition + offset * rotation
or roughly (depending on how it's set up)
llSetPos( llGetPos() + offset * llGetRot() );
_____________________
| | . "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... | - 
|
|
MCM Villiers
Registered User
Join date: 7 Oct 2007
Posts: 39
|
12-12-2007 23:16
I tried that and it didnt work and then I tried the easiest thing...setting the root prim (the seat [forgot to put it in]) at 0,0,0 thanks anyways!
|