- Home /
Unity 5 2D C# interactive grass
Hey everyone, I've been searching for a way to implement an interactive grass element in my game. basically to where the player walks past the grass and the grass has that brushing kind of motion to it. the resources I've found to implement this are very scarce. i specifically tried this resource http://blog.prime31.com/interactive-2d-foliage/ but could barely understand the code provided. i just think it may be out dated, either that or I'm missing something obvious on how to make everything work. i would love the help!!
what's wrong with their code? what is it exactly you want different?
@komodor @tanoshimi it's not exactly whats wrong with it, i can read it and understand whats going on but i feel its missing the rest of the code. here is a screenshot kinda showing some 'missing pieces' i'm talking about. i've tried adding bools and floats to fix some of it but it didn't get me very far still.
Answer by Zehru · Jan 31, 2017 at 03:47 AM
Hi everyone! the "map" variable is part of the utilityKit that Prime31 has on his github. https://github.com/prime31/UtilityKit just download it and put it in your project and you're ready to go with the 2d foliage :D PS: change the map for "MathHelpers.map"