Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Another Rotation Question :P

Zuzi Martinez
goth dachshund
Join date: 4 Sep 2004
Posts: 1,860
10-23-2004 14:09
i'm using llRot2Left(llGetRot()) in a script but what i really need is llRot2RIGHT(llGetRot()). i've read the wiki pages on rotations and quaternions at least a million billion times and i'm lucky i surived it. after trying different things i thought something like llRot2Left(llGetRot() * <1,1,1,-1>;)) would do it but that gets really weird. can anyone take pity on my math retardation and give me a hint please?
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
10-23-2004 14:27
From: Zuzi Martinez
i'm using llRot2Left(llGetRot()) in a script but what i really need is llRot2RIGHT(llGetRot()). i've read the wiki pages on rotations and quaternions at least a million billion times and i'm lucky i surived it. after trying different things i thought something like llRot2Left(llGetRot() * <1,1,1,-1>;)) would do it but that gets really weird. can anyone take pity on my math retardation and give me a hint please?



Try something like: llRot2Left( llGetRot() ) * -1.0 :)

After all, if you just invert the signs of vector coordinates, the resulting vector points in the opposite direction, right? :)
_____________________
- Making everyone's day just a little more surreal -

Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"
Zuzi Martinez
goth dachshund
Join date: 4 Sep 2004
Posts: 1,860
10-23-2004 14:37
you are exactly right, thank you. and thank you for not pointing and laughing as i confused rotations and vectors for the hundredth time. :P
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
10-23-2004 15:17
I think quaternions cause brain damage or something. Every time I start thinking about them, drool starts dribbling out of the corner of my mouth, and I start babbling incomprehensibly, so you're not alone. :D
_____________________
- Making everyone's day just a little more surreal -

Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"