Smooth object wiggle / rocking motion

Hi,

ive been looking everywhere but i can’t find info on this anywhere.

I would like to have an object, such as a boat have a smooth wiggle motion as if it was floating in water.

I was thinking lerps and sines, but i have tried all kinds of stuff but can’t get it to work.

A lerp works to slow down the movement untill it hits its max, but as soon as it starts to go back to it previous max it starts off with large force before it slows down again.

What i need is for the object to slow down as it reaches it max and gradually speed up again and then slow down again as it reaches it other max and then gradually speed up again and so forth.

I think a sine could be of help here but the sine in blueprint works very different from the sine in material blueprint. I don’t know how to use it.

How can i do this in blueprint?

Just 4 years late but this is how I solved my boat wiggle for a nice realistic wiggle around both X and Y with random end angles. The timelines are divided into 4 seconds, each 0.75sec long to be able to update the random values after each one in a smooth way. Each one consists of two sine waves for X-angle and Y-angle, 90 degrees shifted. A lot of copy-paste, unfortunately.

[Video of blueprint in action][5]

Made a litte simplication. Using the time itself as output from the timeline to determine which values can be updated. Just a little logic. The boolean vars are True by default.