Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: doge biscuit on July 06, 2015, 02:16:41 AM

Title: How to simulate the movement in water
Post by: doge biscuit on July 06, 2015, 02:16:41 AM
Hi all,

I am wondering if there is a way to simulate the movement in water? Currently I have a submarine by default sinks to the bottom. The player needs to click to bounce up and to avoid hitting the bottom. There is rigidbody and add force on the submarine, but all look like the movement in the air or on the ground. Is there a way to add a delayed response to the click so that it could feel like in the water or any other ways to achieve the similar result? I am open to any thought. Thanks in ahead!
Title: Re: How to simulate the movement in water
Post by: djaydino on July 06, 2015, 05:08:15 AM
i think you need to play around with the mass / drag / gravity of the ridgibody.
Title: Re: How to simulate the movement in water
Post by: doge biscuit on July 06, 2015, 08:02:34 AM
Thank you very much Dino! I will try it out!
Title: Re: How to simulate the movement in water
Post by: doge biscuit on July 15, 2015, 01:27:07 PM
Hi Dino, I have tried the twist of the mass, drag. It does make the movement feel more like in water! Just for my curiosity, are there any other ways to achieve the similar result? Generally how would you and other people simulate it?

Thank you!
Title: Re: How to simulate the movement in water
Post by: djaydino on July 15, 2015, 02:42:55 PM
Hi,
maybe with some negative add force and give more negative the deeper into the water?
i'm just guessing here, i have not yet tried to simulate drag in water :)
Title: Re: How to simulate the movement in water
Post by: jeanfabre on July 16, 2015, 05:55:25 AM
Hi,

 I think what you are looking for is called "Buoyancy", with plenty of assets available to provide ready to use systems.

https://www.assetstore.unity3d.com/en/#!/content/181

Bye,

 Jean
Title: Re: How to simulate the movement in water
Post by: doge biscuit on July 17, 2015, 10:23:33 AM
Thanks again Dino! I am still working on the tweaking to see any possibility! Really appreciate it!
Hi Jean, Such a sweet tool! Will try it out!

Have a good day!