|
Alia Naheed
Registered User
Join date: 12 Sep 2006
Posts: 7
|
10-01-2007 14:41
Please forgive this newbie question. I need rotation numbers in the 3 number vector notation for a configuration notecard. The prim-sitter script is giving me a 4-number rotation. How do I convert this? The affected script is no mod so I can't do anything there. Thank you .. if this is too basic I would appreciate being pointed to the right source.
|
|
Ralph Doctorow
Registered User
Join date: 16 Oct 2005
Posts: 560
|
10-01-2007 15:30
llRot2Euler
|
|
Alia Naheed
Registered User
Join date: 12 Sep 2006
Posts: 7
|
10-01-2007 15:35
Thanks Ralph ... much appreciated .. not much fun being ignored ..lol!!
|
|
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
|
10-02-2007 07:42
You probably also want to convert from Radians to Degrees...
vector rotationInDegrees = llRot2Euler(theRotation) * RAD_TO_DEG;
and reversed:
rotation theRotation = llEuler2Rot(rotationInDegrees * DEG_TO_RAD);
|