Quantcast
Channel: Questions in topic: "swimming"
Viewing all articles
Browse latest Browse all 107

Swimming around Underwater? (Not Image effects)

$
0
0
Ok Unity folks I require a bit of help. So far I made a very simple underwater script. Activating bubbles,image effects etc; I also added sound for going in and coming out. But my question is how do I make my character rise from the ground. My character is in FPS and I would like something like this. The character can swim around freely sort of like 0 gravity. For this I tried making a boolean and adding a rigidbody to my character. When he was in the water the boolean would be toggled and therefore unchecking the gravity to create an underwater sensation. Unfortunately this did nothing than merely cause complications and leave my player sinking to the bottom. I am using OnTriggers to check if the player is in the water. I would appreciate if someone could point me in the right direction. I just need a bit more understanding on this subject.

Viewing all articles
Browse latest Browse all 107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>