I’ve always wanted to create grass for my game so that it responds to the player’s movement and is physical.
In this case, I wanted to make grass like in the game Horizon Zero Dawn:
I have heard that this can be done with Mesh Deformer, but is it true?
I also want to say that I’m not going to make the grass so detailed and also with animation. But as far as I know, if you use dice, there will be no performance problems
Anyway, I don’t want to make 100K+ ropes or something like that
I hope for your help
PS: I absolutely do not know how to use Mesh Deformer. I didn’t find any useful tutorials(
This would be very laggy if you’re going to use a lot of grass, but other than that, it is possible.
Something like this script inside the grass mesh/part:
script.Parent.Touched:Connect(function(player)
(detecting the players CFrame and the grass CFrame, then the grass making sure it stays a certain distant from the player)
end)
I obv am not going to script because itll require a lot of time for this type of coding but you get the idea.
Still, I thought to postpone the development due to the fact that this will have a very painful impact on performance. I will be waiting for similar updates from roblox
You can create this performantly by doing it 100% on the client. Every second or so you’ll get nearby grass in a small radius and apply CFrame math to make it offset from where they’re standing.
Still its a little detail that is not too important. At the end of the day, its a detail and not a game framework which is needed for the game to work.
Don’t get me wrong here. I think you should really continue on your game, even without this feature! Cant wait for it to be released
If you are or have an animator, you could totally fake this. Create a grid of skinned mesh grass with a single animation, to bend outwards in all directions (hexagon tiles are perfect for this). Then only animate it when someone is standing on the grid tile. It would not be the most realistic simulation, but sometimes we have to take shortcuts. If you have a proper alpha channel, you don’t even need a lot of grass strands.