I want to make a boat bob up and down in the water and thought the best way to do this is to make an animation for it. How would i got about doing this? Do i create the animation in 3ds max then import it? If so, does the animation require bones for it to work in unity? Or can it be animated in a much easier way?
No actually the best way to do that is not through animations, but it is through scripting. Make the transform on the y change on a SIN wave. Its like an FPS head bob script if you ever have made one of those.
ah, that sounds like a good idea… Just one problem, I’m not so good at coding Could someone help me change the code so that the bobbing motion works without a button needing to be pressed and works on a loop? Here’s the code: