Sonofabeat Posted February 3, 2017 Share Posted February 3, 2017 Hello folks. I need to manually set the angle between 2 polygon, i now how to calculate the angle but i'm stuck on how to set it to a different value, i think that i have move the vertex opposite to the adiacent edge but i don't now how to find the correct coordinate. Thank Quote Link to comment Share on other sites More sharing options...
Maurits Posted February 10, 2017 Share Posted February 10, 2017 Maybe this helps. its written for adding 45 degrees to the up normal, but the code could maybe also be used or converted to work for your goal. v@up; float angle = radians(45); float cs = cos(angle); float sn = sin(angle); @up.x = v@at.x * cs - v@at.z * sn; @up.z = v@at.x * sn + v@at.z * cs; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.