Cloning WoW in Unity Part 11 - Swimming 1
6.6 هزار بار بازدید -
5 سال پیش
-
Let's go for a swim!IMPORTANT!I
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: Twitch: soupertrooper
Discord: Discord: discord
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: Twitch: soupertrooper
Discord: Discord: discord
5 سال پیش
در تاریخ 1398/06/02 منتشر شده
است.
6,662
بـار بازدید شده