void Awake () {
ย ย ย ย float x = this.transform.position.x;
ย ย ย ย float z = this.transform.position.z;
ย ย ย ย Roller_Starter_1 = new Vector3(x,0,z);
ย ย }
์๋ ๊ฒ ์ ์ฅํด์ย
this.transform.position = Vector3.Lerp(Roller_Starter_1, this.transform.position + Vector3.up*200f , 0.1f);
์๋ ๊ฒ ๋ถ๋ฌ์๋๋ ํด๊ฒฐ๋จ.
transform/position/vector3 ์ด ์๋ฃํ๋ค์ ๊ตฌ์กฐ๋ฅผ ์ดํดํ์ง ๋ชปํด์ ํ์ฐธ ํด๋งค๋ค๊ฐ ๋๋์ด ํด๊ฒฐํจ...
์ด์ ๋๋ ๋๋ ค์ ์ด๋ํ ์์น ์ ํด์ฃผ๋ฉด ๋๊ฒ ์ง?
๋ฒกํฐ ๋ง์ ๋บ์ ์๋ฏธ๋ถํฐ ์ดํดํด์ผ...
this.transform.position + Vector3.up*200f -> Roller_Starter_1+ Vector3.up*200f ๋ก ์์ ํจ.
Roller_Starter_1+ Vector3.up*200f ์ด๋ฉด Roller_Starter_1๊ฐ ์์์ x,0,z์ vector ๊ฐ์ ๊ฐ์ง๊ณ ์์ผ๋๊น. vector3.up 0,1,0์ 200f๋ฅผ ๊ณฑํด์ 0,200f,0์ด ๋๊ณ ์ด๊ฑธ Roller_Starter_1์ ๋ํด์ x,200f,z ๊ฐ ๋๋๊ฑฐ ์๋์ผ?