pan.mentolka 2 Posted June 19, 2021 Hi people! Justa superquick issue I need to keep the normal direction of the point, so all the heads will be oriented along the normal direction. BUT I would like to randomize their rotation around the Y axis, so they should not be all "looking straight up" but they should be ALL randomly rotated along each of their Y axis. I hope this explanation does make a bit sense. I am attaching the file. Thank you so much for any advice guys! rotY_issue.hipnc Share this post Link to post Share on other sites
konstantin magnus 1,162 Posted June 19, 2021 Matt Estella wrote a great article on this: https://www.tokeru.com/cgwiki/index.php?title=JoyOfVex17#Combine_orients_with_qmultiply Share this post Link to post Share on other sites
animatrix 287 Posted June 20, 2021 Hi, You can write something like this to add some random rotation around N: float angle = radians ( fit ( rand ( @ptnum + ch("seed") ), 0, 1, -360, 360 ) ); @rot = quaternion ( angle, normalize ( @N ) ); Make sure the geometry to be copied is aligned to Z axis though. Share this post Link to post Share on other sites
konstantin magnus 1,162 Posted June 20, 2021 Also the scatter and align-node has "rotating around normal" build in. rotate_around_axis.hipnc 1 Share this post Link to post Share on other sites
pan.mentolka 2 Posted November 28, 2021 Exactly what I was looking for! Thousand thx Share this post Link to post Share on other sites