Ok cool! Thats nice, I found the premade effect. But I also want to add it in Y and X axis.
When I paste the expression in the expression box I get compile error.
I'am pasting this:
real rotateRange = fpItem.randRotMax.z - fpItem.randRotMin.z;
real stepsInRange = floor(rotateRange/Z_Rotate_Step);
real ZRotation = randomInt(0,stepsInRange)*Z_Rotate_Step;
fpItem.rotation.z = degtorad(ZRotation);
I want to rotate randomly in 180 degrees to get more variation off bricks in all axis. I'am also rotating all the bricks with a value of 0.5 in all axis aswell, will that be overridden by "Stepped rotation"?
Thx in advance
Really appriciate it!