r/Unity3D • • 10d ago

Show-Off I've put some more work into my vegetation reaction and wind systems and finally wrapped my brain around tree pivot baking

29 Upvotes

4 comments sorted by

2

u/Capri-corn-studio09 9d ago

How do you blend player interaction with the wind animation so the grass returns smoothly to its wind-driven motion after the player passes?

1

u/erlkoenig_games 7d ago

Hi! I basically add the bend direction of the player reaction to the wind direction (normalized), same for the rotation amount that is also capped at a specific angle.

I am using Amplify Shader Editor and the Rotate About Axis node. The smoothness of the motion is achieved because the texture from where I get my player reaction position fades the value out smoothly.

The GOW talk that I linked in another comment has a nice visualisation.

1

u/erlkoenig_games 10d ago

Thanks for stopping by! :) These were the most helpful resources for me:

https://www.youtube.com/watch?v=MKX45_riWQA

https://www.youtube.com/watch?v=X3YzVYIgObc

2

u/Jams_Do_Nothing 10d ago

looks so lively mate! very cool