XaiJu
John Kunz
John Kunz

patreon


Analytic Spring Function with VEX

Using the spring function to procedurally animate extrusions.  This gives you a nice jiggle style effect.  Compare with a linear animation in the second image.


// Spring Decay Function

float a = .5; // Damp

float w = 15.0; // Freq

@P.y = -(pow(2.7, -@Time/a) * cos(@Time*w) ) +1;


Check out the file to see it in use!

Analytic Spring Function with VEX Analytic Spring Function with VEX

More Creators