I am not very good at this stuff, but I doubt that ripplemesh code on the archives is going to be of much help to you, it lacks stability for a start. I would modify your tunnel effect function, which is IMO a lot more capable.
The idea, I think, is to superimpose a "ripple" on the basic deltax and deltay tunnel distortion you are already producing.
I have made an attempt, But it is still not working properly.
The idea, I think, is to superimpose a "ripple" on the basic deltax and deltay tunnel distortion you are already producing.
I have made an attempt, But it is still not working properly.