Hello,
got a few questions regarding a “terrain” that should serve as ocean waves.
I got two terrains. One that uses a sinus calculation to generate simple sinus waves.
My question regarding that terrain is if it is possible to change the math so that it only plays one wave at a time?
Also how could I make the outer vertices not being influenced by the waves so that they lay flat?
My second terrain uses noise calculation for the waves.
The result is pretty nice but the terrain keeps flying slowly upwards.
Also at some point the cube falls through the ground…
Not sure if you’ve determined the cause or not, but for the second wave, is the “slowly floating upwards” potentially caused by the line self.vertex.z = [etc] + self.timer.getElaspedTime(), would that part continuously increase? What happens if you remove the timer?
I don’t have much experience with python in blender, but my first thought is that the z value is constantly increasing with the timer. Best of luck if I’m way off base here.
yeah that self. was redundant
sorry, but I don’t get it…
What do I do with z?
And where does that maxdist variable come from or is it a constant you assign?
Something like this?
You could just add a couple shape keys to your wave, keyframe them to make a wave animation, then add logic bricks to make it always play that animation on repeat.
Yeah, I’m pretty sure it does as long as your settings are right to make animations use force. I was trying to make a boat game and got the waves to move the boat with shape key animations.