Notice that the sine functions takes radians. That means a full rotation, or period is 2*PI radians. That again means that if you want 360 steps before completing a full circle, or period, you need to divide by 360.
So 360 steps per second, with time t and amplitude 10 will be:
(Edit: 360 steps per second would mean 1/360 seconds per step, and you would still have one revolution per second)
position = x + 10 * sin(t * ((2 * pi) / 360))
For the other dimensions, y and z, you may perhaps want to have another phase, which is just to add a value between 0 and 2 * PI inside the sine function. This prevents the wiggling to be on a line in the space or plane you want to move.
If you want to have a certain amounts of wiggles per second, you can instead just multiply with 2 * pi instead, like this:
position = x + 10 * sin(t * 2 * PI * wiggles)
If wiggles is 10, you will have 10 wiggles per second, if wiggles is 1/2, you will have half a wiggle per second.
The general function is:
f(time) = offset + amplitude * sin(time * 2 * PI * frequency + phase)
Edited by aregee, 28 August 2014 - 12:21 PM.