Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 DarkKobra2020 · Oct 07, 2011 at 09:55 PM · physicswaterliquidbuoyancyripple

Water Ripples

I'm going to ask a few questions to save me form asking a few for different subject. First question...Water Buoyancy its getting a real pain for me to program water buoyancy no matter what I try it any object with rigid body just sinks to the bottom. Another one is ripples, now I know this possible I found an old 2.0 example but that does not work anymore I even tried reprogramming it myself but instead it came out all wrong so I could use some help with that as well.

Comment
Add comment · Show 1
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 DaveA · Oct 08, 2011 at 12:41 AM 0
Share

Separate questions really should go in separate questions, easier to track the issues and if they've been answered.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by roamcel · Oct 08, 2011 at 06:25 AM

The only water interaction I witnessed was just a 'trick' regarding water collider trigger and an animation change for the character. Simply put, never saw it implemented with physics, but in such case I would do it like this:

  • object enters water

  • my 'afloat' script instantiates an elastic joint, anchored to an empty gameobject's rigidbodied prefab that stays at a constant height above water, and that follows the player

  • the afloat script sets the elastic joint anchor to the player or object in the water

For the 'trick' solution, you just use a flag that tells wether the player is subject to gravity or not, for the most basic implementation.

Regarding water ripples, i think that the easiest implementation is a projector and an animated texture: http://variancetheory.com/animated-texture-builder/

  • object enters water and triggers the water

  • my 'watersplash' script instantiates a projector that uses the animated cookie at target's feet

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How to Script Buoyancy with a Water Shader 2 Answers

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

Help with Liquid Physics2D 0 Answers

how can i make fluid or water inside bottle 1 Answer

Bouyancy timing issue 0 Answers


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