LYH Posted October 5, 2016 Share Posted October 5, 2016 help : void rotate(matrix &, float amount, vector axis) Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted October 5, 2016 Share Posted October 5, 2016 matrix3 mat = ident(); vector axis = {0,1,0}; float angle = relbbox(0, @P).y; rotate(mat, angle, axis); @P *= mat; rotate is a function that changes a matrix. you need to multiply the changed matrix with your point positions to actually rotate your geometry. Make sure to check out: http://www.tokeru.com/cgwiki/index.php?title=HoudiniVex#Rotate_with_a_matrix 2 Quote Link to comment Share on other sites More sharing options...
LYH Posted October 6, 2016 Author Share Posted October 6, 2016 3 hours ago, konstantin magnus said: 旋转是改变基质的功能。你需要用点位置实际上旋转你的几何倍增改变矩阵。 请一定要看看:http://www.tokeru.com/cgwiki/index.php?title=HoudiniVex#Rotate_with_a_matrix Thank you for your help 1 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.