# UE5 grass wind direction

**URL:** <https://forums.unrealengine.com/t/ue5-grass-wind-direction/491290>\
**Category:** Character & Animation\
**Tags:** unreal-engine, Foliage, grass, question, wind\
**Created:** [November 24, 2021, 6:50pm UTC](https://forums.unrealengine.com/t/ue5-grass-wind-direction/491290 "2021-11-24T18:50:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![man.olie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@man.olie](https://forums.unrealengine.com/u/man.olie)\
**Post date:** [November 24, 2021, 6:50pm UTC](https://forums.unrealengine.com/t/ue5-grass-wind-direction/491290/1 "2021-11-24T18:50:16Z")

</div>

Hello, I am totally new to the unreal engine.  
I 've added some megascan grass, on and imported mesh, using the foliage tool and enabled the grass wind.  
The problem is that the grass is animating in the z axis and it’s moving up and down like a wave. I guess this has to do with the wind direction.  
How do I change the wind direction from Z to X or Y ?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 24, 2021, 7:46pm UTC](https://forums.unrealengine.com/t/ue5-grass-wind-direction/491290/2 "2021-11-24T19:46:31Z")

</div>

I just checked some Megascans stuff, and there is no wind direction. I agree with you, by default, you only get to tweak the influence, and it does look weird.

Thing is, the main parameters are in a parameter collection. To get to that collection, go to the main material, double click the Simple\_wind\_material\_functon, then double click on WindIntesity ( for instance ).

I found that setting ‘influence’ ( your original param ) on .5 and WindSpeed on 2 looks more real ( for the short grass ).

---

<div class="post-metadata">

**Author:** ![man.olie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@man.olie](https://forums.unrealengine.com/u/man.olie)\
**Post date:** [November 25, 2021, 7:18am UTC](https://forums.unrealengine.com/t/ue5-grass-wind-direction/491290/3 "2021-11-25T07:18:04Z")

</div>

Thank you for your answer, but what I am looking for is to actually solve the problem.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 25, 2021, 7:55am UTC](https://forums.unrealengine.com/t/ue5-grass-wind-direction/491290/4 "2021-11-25T07:55:46Z")

</div>

The problem is twofold.

1. This old type of grass animation isn’t great

2. It’s up to the maker, how they code the animation into the world position offset.

So the solution is to re-code the material.

---

<div class="post-metadata">

**Author:** ![Thilina\_arimac](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thilina_arimac/32/1068821_2.png) [@Thilina\_arimac](https://forums.unrealengine.com/u/Thilina_arimac)\
**Post date:** [August 4, 2022, 12:31pm UTC](https://forums.unrealengine.com/t/ue5-grass-wind-direction/491290/5 "2022-08-04T12:31:22Z")

</div>

Here I have implemented a way to communicate the wind direction to foliages and bend them accordingly. They are not megascans. But still, you can modify the materials to get the effect.  
[Wind direction](https://youtu.be/WHdk4cTHE5s)  
 ![wind direction_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/8/378a73a2c6c3d55dd30290591f3769097ca9de81.gif)
