Siro Mfume
XD
Join date: 5 Aug 2004
Posts: 747
|
08-09-2004 16:37
I've been attempting to develop a script that will do this for physical objects, like vehicles, but not necessarily as it might be interesting for some other things. Anyway, my problem is this: I'm having trouble figuring out just how to go about doing this. I know that llRotLookAt with ZERO_ROTATION does this quite nicely except it cancels ALL rotation and restores equilibrium to the object. So basically what I want to figure out is just what I should be doing to cancel rotation/restore rotation to global default (or some other prespecified rotation) on one or two axis while -not- canceling or modifying it on another.
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
08-09-2004 17:52
Im not *exactly* sure if this is the solution you're looking for, but have you tried disabling STATUS_ROTATE_X, STATUS_ROTATE_Y, and/or STATUS_ROTATE_Z?
// Turns physical rotation on y axis off. llSetStatus(STATUS_ROTATE_Y, FALSE);
==Chris
|
Siro Mfume
XD
Join date: 5 Aug 2004
Posts: 747
|
08-09-2004 18:11
Thank you, that seemed to be exactly what I was looking for. I am dismayed, though, that I spent a considerable amount of time considering the complexities of quaternions.
|