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!
Flapping gif from viewport:
Graph:
EDIT: Completed material graph updated with solution
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.
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?
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.