Godot Version
v4.4.stable.official [4c311cbee]
Question
I am making a platformer game in which the direction that gravity points is changed by the region of the map you are in. I want to make arbitrary polygons in which the direction of gravity is different from the default. To indicate to the player that the gravity is different in one of these regions I want some sort of visual effect like moving arrows or lines. These arrows/line/ect would move across the region in the direction that gravity is facing. My gravity currently will only be facing up, down, left, or right but a solution that is more general and could be used for other directions would be preferable. I don’t have much (any) experience with shaders but I thought they might be the way to go? Is there a better way to do this than with a shader and if so how? If a shader is the best option how would I go about making said shader and adding it to my polygon?
Thanks in advance for any help.