Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Return to origin

Jerry Martin
Registered User
Join date: 2 Oct 2005
Posts: 33
12-14-2006 11:24
Hey folks , I been working on a project and could use alittle advice , what the object does is start a small rotation using llApplyRotationalImpulse and then I give it alittle lift straight up using llApplyImpulse . The effect I get is an object leaping into the air and doing a flip , now where I get stuck at is after landing back on the ground it will land maybe on it's back , sometimes it's side which is ok however I need a way to get it to re-orient it self back to it's original postion before it's next leap , any of you masters out there got a suggestion ? . thanks . . .
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
12-14-2006 11:47
Before the 'leap' have the prim do an llGetRot() and save it to a rotation global variable.

After the leap just add a line that does llSetRot() with the variable you set in the parenthesis.
Jerry Martin
Registered User
Join date: 2 Oct 2005
Posts: 33
12-14-2006 14:00
Thanks Tiarnalalon , I sure did learn a thing or 2 , also was able to explore llGetPos and llSetPos and add that to the script however I failed to mention that the object is physic's enabled , I was able to get it to work , but only after disabling physics then had to re enable it again , I was wondering is there a way to have the object rotate and reposition itself in a smooth symiltanious movement , while what you told me to do works , it's a fast snap back to postion , can i slow it down and smooth the movement out ? thanks once again . . .