Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by lpma · Nov 28, 2016 at 08:04 AM · c#unity 2dunity5grassinteractive

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!!

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image komodor · Dec 02, 2016 at 01:46 PM 0
Share

what's wrong with their code? what is it exactly you want different?

avatar image tanoshimi · Dec 02, 2016 at 02:23 PM 0
Share

That code still works in Unity 5.5.

avatar image lpma · Dec 02, 2016 at 06:27 PM 0
Share

@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. alt text

screen-shot-2016-12-02-at-11340-pm.png (170.9 kB)
avatar image Gennady37 · Dec 12, 2016 at 07:47 AM 0
Share

does not work, what is map?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

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"

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to set high score and have it displayed 1 Answer

How to make the tower shoot at the one who is closer to the finish line? 0 Answers

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Creating an app for mobile and browsers 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges