How to create a rolling particle motion by expression


#1

I would like to create a particle rolling motion by expression.
First, i normalise the velocity vector, and use a custom worldUp variable like <<0,1,0>> to
find a cross vector $n

Then normalise $n, create a float variable $rotValue which is deg_to_rad(5);

Then I use the rot function to deform the particle position like $rot_Position = rot($oldPos,$n,$rotValue);

How do i add that rolling motion into the particle original trajectory?