Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Managing rotation

Lemieux Primeau
Registered User
Join date: 25 Oct 2006
Posts: 49
10-28-2006 18:18
I have a pose ball that, after an av sits on it, is turned to physical and then moved successively to 3 or 4 different waypoints down a slide with llMoveToTarget. Everything works pretty well except for the fact that the av is rolling all around the whole time (upside down, right side up, etc. - much like the ball would be doing in rl I guess). I realize that I may have to do some work to keep him facing in the direction of movement but, before I do that, how do I at least keep him sitting upright?
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
10-29-2006 01:18
http://lslwiki.com/lslwiki/wakka.php?wakka=llSetStatus and STATUS_ROTATE_*

I don't know if it will solve your problems, but you should be able to keep them upright by setting the x and y rotations to false, turning to face travel is trickier.
_____________________
Eloise's MiniMall
Visit Eloise's Minimall
New, smaller footprint, same great materials.

Check out the new blog
Lemieux Primeau
Registered User
Join date: 25 Oct 2006
Posts: 49
10-29-2006 06:08
That looks promising - I'll give it a try - thanks!
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
10-29-2006 08:56
From: Eloise Pasteur
http://lslwiki.com/lslwiki/wakka.php?wakka=llSetStatus and STATUS_ROTATE_*

I don't know if it will solve your problems, but you should be able to keep them upright by setting the x and y rotations to false, turning to face travel is trickier.


using a simple llLookAt(llGetVel+llGetPos()) in a timer loop should keep the ball looking in the direction it's traveling. that plus may need to be a minus, and/or the vel switched around with pos, but I don't have acess to SL right now and can't think through the math ATM.
_____________________
My SLExchange shop

Typos are forgiven; desecrating the english language with reckless abandon and necrophilic acts is not.


The function is working perfectly fine. It's just not working the way you wanted it to work.