Jump to content

Quaternary rotation


Siofra Alter
 Share

You are about to reply to a thread that has been inactive for 4321 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Does anyone know of a good explanation for how to set quarternary rotations for the spatially challenged?  I've been trying to set x=90, z=180 for a while to use a sculpty cushion as a poseball and I think I'm running out of both hair and spinal fluid...  help?

Link to comment
Share on other sites

You can do the conversion you want this way:

rotation rot = llEuler2Rot(<90.0,0.0,180.0>*DEG_TO_RAD);

That is, take the <x,y,z>  value in degrees, turn it into radians by multiplying by the constant DEG_TO_RAD and then tell lsl to convert that into a quaternion for you. 

Void's rotation page is really useful https://wiki.secondlife.com/wiki/User:Void_Singer/Rotations  and Grandma Bates has recently put up two very helpful tutorials on SLU, Basic Introduction to Rotations and Introduction to Rotations pt 2

  • Like 1
Link to comment
Share on other sites


Siofra Alter wrote:

Does anyone know of a good explanation for how to set quarternary rotations for the spatially challenged?  I've been trying to set x=90, z=180 for a while to use a sculpty cushion as a poseball and I think I'm running out of both hair and spinal fluid...  help?

For sitting you don't need to loose your hair:smileyvery-happy:

You just pick up the free Easy SitTarget Tool at the market place

Way back I pulled out my hair trying to find correct llSitTarget parameters

That was before I learned that the function is buggy and before I learned how to work around the bugs

Discussions about the bug and it's correction:

http://forums-archive.secondlife.com/54/09/242119/1.html

http://forums-archive.secondlife.com/54/6a/153963/1.html

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4321 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...