houdini, scripts, vex

VEX: SOP Rotation


f@speed = fit01(rand(@ptnum), ch('minSpeed'), ch('maxSpeed'));

float angle = (ch('angle')+@ptnum)*@speed;
vector axis = sample_direction_uniform(rand(@ptnum*ch('seed')));

@orient = quaternion(angle, axis);

Leave a Reply

Your email address will not be published. Required fields are marked *

5 × 5 =