Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] - How to support the grass for multiple players? #1

Open
quytang-gfg opened this issue Oct 10, 2022 · 1 comment
Open

[Question] - How to support the grass for multiple players? #1

quytang-gfg opened this issue Oct 10, 2022 · 1 comment

Comments

@quytang-gfg
Copy link

Hi there,
This is really cool! Thank you so much for sharing the tutorial.
When following this tutorial, I wonder how to support multiple players within the grass field.
Do you have any idea or solution for that?

Thanks

@Arnklit
Copy link
Owner

Arnklit commented Oct 10, 2022

Happy if it was helpful.
You could add multiple variables for more objects to interact and then check against each and mix the result together, but it's not really a very scalable solution. The best solution I've seen for many objects interacting with grass is to use a render texture instead that captures many objects as they collide with the grass. This also allows you to do stuff like leave the grass bent for a while after it's been touched.

I've made an implementation of this, but I haven't gotten around to cleaning it up and making a video about it yet. If you look around you can probably find some other resources on how to do it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants