playMaker

Author Topic: How to simulate the movement in water  (Read 3163 times)

doge biscuit

  • Playmaker Newbie
  • *
  • Posts: 11
How to simulate the movement in water
« on: July 06, 2015, 05: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!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: How to simulate the movement in water
« Reply #1 on: July 06, 2015, 08:08:15 AM »
i think you need to play around with the mass / drag / gravity of the ridgibody.

doge biscuit

  • Playmaker Newbie
  • *
  • Posts: 11
Re: How to simulate the movement in water
« Reply #2 on: July 06, 2015, 11:02:34 AM »
Thank you very much Dino! I will try it out!

doge biscuit

  • Playmaker Newbie
  • *
  • Posts: 11
Re: How to simulate the movement in water
« Reply #3 on: July 15, 2015, 04: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!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: How to simulate the movement in water
« Reply #4 on: July 15, 2015, 05: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 :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to simulate the movement in water
« Reply #5 on: July 16, 2015, 08: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

doge biscuit

  • Playmaker Newbie
  • *
  • Posts: 11
Re: How to simulate the movement in water
« Reply #6 on: July 17, 2015, 01:23:33 PM »
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!