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

Adding multiple colliders to my character controller

$
0
0
So while planning out how to write my swimming script I came across the realization that character controllers don't rotate. Naturally while swimming the character needs to be in a horizontal position. The only solution i have come up with is having a sphere for my characters head inactive and when I enter the water activating it. The head would be located at the midpoint of the character height and in front of my character. I could do the same thing with legs. Also upon entering the water I would shrink my controllers height so that essentially the character is comprised of 3 separate spheres. Is this a logical way of doing this or does anyone know of a better method?

Viewing all articles
Browse latest Browse all 107

Trending Articles



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