Cloning WoW in Unity Part 11 - Swimming 1

Published: 24 August 2019
on channel: Soupertrooper
6,743
128

Let's go for a swim!

IMPORTANT!
I made a mistake in the video, it's a minor issue but it has consequences for where you place your water.

in PlayerControls:
void GetWaterlevel()
{
d_fromWaterSurface = waterSurface - transform.position.y;
d_fromWaterSurface = Mathf.Clamp(d_fromWaterSurface, 0, float.MaxValue);
}

You probably don't even need to clamp it.

Project files from the previous episode:
https://mega.nz/#!LZ5BgQTA!WZcbkESunU...

Twitch:   / soupertrooper  
Discord:   / discord  


Watch video Cloning WoW in Unity Part 11 - Swimming 1 online without registration, duration hours minute second in high quality. This video was added by user Soupertrooper 24 August 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,743 once and liked it 128 people.