Saucey Sinister Posted February 17, 2020 Share Posted February 17, 2020 I have built a HUD with a button that will rotate the HUD, with the goal of using multiple sides of a cube to display all of the options for my items ( ex: textures, re-size, and animations).The HUD functions all work, except for the rotation. If I have the HUD rezzed in world, it turns 90 degrees perfectly and even rotates back when clicked again. When I attach the HUD, it doesn't rotate all the way, showing just one face of the object, but rather acts as if it partially rotated, displaying 1 full face and 1 part of the other side. Can anyone out there clue me in as to why my hud rotation will turn 90 degrees in world, but attached it doesn't? It does this no matter what information I put in for the turn. It's never a completed turn showing only 1 face of the cube at a time. The buttons are of an existing product's HUD that I used as a sample to test that my button rotation also worked. The default box is my test button. No matter where I put it, it always rotates this derped way when attached as a HUD. Any help would be appreciated! Link to comment Share on other sites More sharing options...
Rolig Loon Posted February 17, 2020 Share Posted February 17, 2020 Are you making a local rotation, relative to your av, or are you trying to use a regional rotation? To make the HUD rotate properly relative to YOU, you have to use a local rotation. 1 Link to comment Share on other sites More sharing options...
Saucey Sinister Posted February 17, 2020 Author Share Posted February 17, 2020 This is the line I use for the rotation: llSetRot(llGetRot()*rot_xyzq/llGetRootRotation()/llGetRootRotation()); I don't know much about scripting, so I am unaware of the differences of why you use one or the other. Is this the part you are talking about? So, instead of a set rot it needs loc rot? Link to comment Share on other sites More sharing options...
Nova Convair Posted February 17, 2020 Share Posted February 17, 2020 A hud is rotated local. llSetLocalRot(llEuler2Rot( <x,y,z> * DEG_TO_RAD)); that way you can try the values for x,y,z in degrees 2 Link to comment Share on other sites More sharing options...
Saucey Sinister Posted February 17, 2020 Author Share Posted February 17, 2020 37 minutes ago, Nova Convair said: A hud is rotated local. llSetLocalRot(llEuler2Rot( <x,y,z> * DEG_TO_RAD)); that way you can try the values for x,y,z in degrees That worked! Thank you to both who responded in this thread. I linger here sometimes and I think it's so generous that strangers help strangers while asking for nothing in return. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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