Objects in water movement

Hi,

I would like to know how could it be possible to have objects in water moving naturally as the water is moving, so like an ocean.

Or if the object is a boat that would need to have power and then move across the ocean. But that isn’t really the focus. But that was certainly an idea for some kind of change of movement for a boat, otherwise it could be moving side to side and going foward.

Can you give a bit more info on your scenario. What do you want to simulate ?

Just subtle motion of a stationary object in water until perhaps the player can take control and drive off.

Do you mean like, for example, an anchored boat bobbing in the ocean? I guess just make an idle animation (ex. ani_boat_idle) for the boat, and have the animation loop until the player gets behind the wheel and takes control . . . if that makes sense. It shouldn’t be too hard to script.

That is correct. Script as in program?

I’m using a 2.65 program code for the ocean. It only works with that. I don’t know anything about programming in python or any language. I’m not focused on it. Is there an example I could see, of a cube bouncing gently up and down or something.

You could have a very simple version of movement with the water - have the boat sit on an invisible plane while the plane is animated moving up and down repeatedly in synch with the water. You can also try vertex parenting the invisible plane to the water as well (to where the boat is sitting) is it almost looks as if the boat is moving with the water (not sure if this works).

If you want the boat to stop moving with the water when the player gets in the boat, you can simply stop the plane from playing an action, then resume when the player gets off.

waterMaterial.blend (89.6 KB)

If it is the dynamic object (player) that should be affected by the water movement you can setup the material of the water, so that the player is having a buoyancy. Therefore in the water material play around with the parameters Force Field: Force, Distance and Damping