• 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 /
This question was closed Jan 09, 2015 at 12:32 PM by meat5000 for the following reason:

Question of Discussion. Not Unity Specific.

avatar image
1
Question by Pragnani K · Jan 08, 2015 at 09:02 AM · physicswater

Water physics when it was in a bottle

Hi I am try to achieve water in bottle effect, but I have failed to do so, because I need to rise or lower water level based on the gravity...give me a hint how to achieve this.

alt text

test.png (4.9 kB)
Comment
Add comment · Show 13
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 HarshadK · Jan 08, 2015 at 09:27 AM 0
Share

Explanation of what you exactly require might be using some picture or a reference effect you've seen somewhere will be helpful for the people.

Also provide what you have tried till now.

avatar image Pragnani K · Jan 08, 2015 at 09:37 AM 0
Share

I haven't seen that effect so far.... The thing is consider a water bottle or water tin which is filled with 3/4th of water... What will happen when u bend bottle I want to achieve the same effect....I am not asking about any code, I just want a hint on how to achieve that...

avatar image Kiwasi · Jan 08, 2015 at 09:57 AM 0
Share

Bend a bottle?

Can you draw some pictures?

avatar image Scribe · Jan 08, 2015 at 11:02 AM 3
Share

is this 2D like the picture or would it need to be a 3D solution (haha puns) if its in 2D I would suggest just using a texture that is based on world position or orientated to Physics.gravity, in 3D its probably less easy, but you could use a similer work around, if you can avoid doing it with fluid simulations, avoid it, multi variable calculus is tiring.

avatar image tanoshimi · Jan 08, 2015 at 11:13 AM 1
Share
  • for "solution" :)

Does this need to be physically accurate? i.e. does the volume of the liquid need to remain constant as the container is tilted, or is it sufficient just to have the surface remain at the same height? A similar question was asked quite recently and I suggested creating a liquid mesh that filled the container, and either using the stencil buffer or a dissolve shader to gradually hide/show different amounts of that mesh starting from the bottom of the container, relative to the world normal.

Show more comments

0 Replies

  • Sort: 

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

29 People are following this question.

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

Related Questions

Flowing water with a fixed volume 1 Answer

How to create water physics in Unity? 3 Answers

Elementes like in "from dust" 1 Answer

How do you make ripples for character in water? 0 Answers

How to create a water current that pushes a floating object 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