why don’t you simply use the good old (co)sinus?

if you combine two near frequencies

f_1 = f_0 - d

f_2 = f_0 + d

you get a beat of frequency d:

so your function could look like this: f(t) = 2.0 * ( cos( (f_0 +
(Pi/30)) * t ) - cos( (f_0 - (Pi/30)) * t ) )

f_0 is your shake oscillation and should be much larger than Pi/30

Hi

My math is pretty basic. I have books but not much practice in application yet.

Here is what I want to do.

I have 30 frames to work with.

I need an output value between 0.0f and 4.0f to apply a “shake” to an object within that 30 frames.

I want the shake to ease in and ease out.

Could someone point me in the right direction?