Flapping wing material help tweak

Hi!

I want to make a flapping bat material and I’ve almost gotten it to work.
The problem is that on a plane mesh the material moves up and down, but on a cube mesh the top face draws the material (flapping bat) as intended.

You can see below for the material graph and and how it looks in the viewport.
Any idea what I would need to change or do to make this work?
Thanks in advance! :slight_smile:

Flapping gif from viewport:

Graph:
Imgur

EDIT:
Completed material graph updated with solution
Imgur

It seems that there is no vertex in the middle of the plane so you end up moving all vertices as they are near the tip of the wing. Try to add a vertex or edge where the bat’s body should remain stationary.

Ah you’re right. Now I got it to flap!

Only problem is that the entire body of the bat move up and down. I’m guessing I need to isolate something from the sine so it only applies to the wings and not the center of the material?

New gif:

New graph:
Imgur

Depending on the plane’s UVs you can do something like this to create a mask for the center line:

The power node is only necessary if you decide to add more vertices to the plane: adjusting the exponent you could tweak how the wings bend.
In any case, multiply the world position offset value with this mask to prevent the center line from moving.

Great, it worked perfectly! Thank you :smiley:

I’ll add the finished graph to the OP in case anyone else needs it.