ItHadToComeToThis Posted January 25, 2021 Share Posted January 25, 2021 Having an odd issue with PRIM_TEXTURE. I have a bar, the bar itself is rotated 90 degrees. In turn the texture displayed on the bar is rotated 90 degrees. This all looks normal until I update the bar using PRIM_TEXTURE,ALL_SIDES,tStr,<1.0,1.0,0.0>,<0.0,0.0,0.0>,90.0 This doesn't set the texture rotation at 90 degrees, it sets it at 116.61988. To test this I also set the rotation of the texture at 180 and 270 using PRIM_TEXTURE and on both occasions it gave skewed results. The wiki states the rotation should be in radians so using 90.0 should work as it does if you enter 90.0 on the built panel. No other modifications to the prim or texture have been made so the other vectors should be accurate. Any ideas? Link to comment Share on other sites More sharing options...
Rolig Loon Posted January 25, 2021 Share Posted January 25, 2021 Noooo... If you type 90 in that spot, you are telling the script to rotate the texture 90 radians, or about 5100 degrees. If you want to rotate it 90 degrees, type PI/2 instead. 2 Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted January 25, 2021 Share Posted January 25, 2021 (edited) 27 minutes ago, Rolig Loon said: If you want to rotate it 90 degrees, type PI/2 instead. Or 90*DEG_TO_RAD for us mere mortals. 32 minutes ago, ItHadToComeToThis said: The wiki states the rotation should be in radians so using 90.0 should work as it does if you enter 90.0 on the built panel. The build tools panel displays everything in degrees, not radians. Edited January 25, 2021 by Wulfie Reanimator 2 Link to comment Share on other sites More sharing options...
ItHadToComeToThis Posted January 25, 2021 Author Share Posted January 25, 2021 Ahhhhhhhhh .......perfect thank you! 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