SpeedTree Wind?

Is wind supported in Godot? I have a few trees, and no wind. I was hoping there is a way to get wind working for my trees so they are not so well still =) .


  • DschoonmakerDschoonmaker Posts: 274Member

    There's no wind built-in, but it shouldn't be hard to make it yourself. Area already has gravity, so within a certain area you can simulate wind for physics bodies.

    For trees, you could probably get the gravity(maybe using groups, so that you only get the gravity from wind areas) for each tree, then pass that information to a shader & move leaf vertices there.

    That's my idea, but it may not be the best way to do it. I don't know how Unity does it.

  • TwistedTwiglegTwistedTwigleg Posts: 4,593Admin

    If you want a really simple window effect for the tree, I would recommend checking out this page on the documentation. It gives a nice, though not realistic, appearance of wind.

  • DschoonmakerDschoonmaker Posts: 274Member

    If all you need is a little leaf movement, a simple wind shader like that is good. Areas & a more complex wind shader would be useful for dynamic wind movement, like changing wind direction & objects that create wind(a fan, a bomb, etc.)

  • WashedUpStudiosWashedUpStudios Posts: 8Member

    Thanks I will take a look into this and see if it works well for what I am going for. :)

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file