All language subtitles for 12. Challenge Review Player Bounds

af Afrikaans
ak Akan
sq Albanian
am Amharic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

In this challenge review we're going to take a look at player rapping.

So here's our pseudocode.

And in order to do this properly I need to run our application and I need to know when exactly do we

need to rap.

So with the player selected in the hierarchy so they can see the detailed information in the inspector

we're simply going to move all the way to the right.

And as soon as I'm off the screen which is about eleven let's go on set to eleven.

You can see a tad bit of me so I'm gonna set it to about eleven point four and that's two point two

three.

OK so on eleven point three.

So if I move past eleven point three if I'm greater than eleven point three I need to appear at negative

eleven point three.

And likewise if I'm less than negative eleven point three I need to appear at positive eleven point

three.

So now that they have the value that I need to check against.

Let's go ahead and write our if statements.

So I'm going to convert this pseudocode into actual code.

We're gonna have an if statement and I'm just going to check if the transform on The X so transform

dot position dot x is greater than eleven point three f and if it is greater than one point three f

what are we going to do.

I need to take the current position in teleport him I need to say transform not position equals a new

vector 3 the x axis is going to be negative eleven point three f followed by what for the Y I don't

want it to be zero.

It has to be whatever the current Y is I don't care what the Y is it's whatever the current Y is when

the players wrapping.

So we need to say transform dot position dot y to get the current value and then zero for Z inside of

our l safe statement here we need to say elusive if we're gonna check for the left direction transformed

up position x is less than negative eleven point three f then what needs to happen we need to grab our

current position and assign it a new position to a positive eleven point three f for the X transformed

our position dot y for the current Y in 0 4 Z by saving this and hopping back into unity

you'll see here that if we run the game we should be pretty okay let's go ahead here make sure our bounds

restraints are still working and looks like we're good and if I move all the way to the right here we

wrap on the left and if I move all the way to the left we wrap on the right and there we go we have

our fully functional player controller I'll see you guys in the next video.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.