Gentle Wave Rocking?

Heya all –

I’d like to apply a gentle wave rocking motion to an object, and I’m not getting what I’m looking for. After some trial and error, I came up with:

function Update() {
	transform.Rotate(Mathf.PingPong(Time.time, 1)-0.5, 0, Mathf.PingPong(Time.time, 0.4)-0.2);
}

But that it very fast, and very dramatic. Does anyone out there have any suggestions? Thanks for anything!

-Lucas

On the Wiki theres some perlin noise examples, have a look at the rotation one there

AC

Wow, that’s great! Thanks for the tip.

Now all I need to happen is for the platform to stop pushing up through the FPS walker…

Thanks again!

-Lucas