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?
↧