Vector3 newVelocity = new Vector3(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical"), 0f) * Time.deltaTime;

newVelocity.Normalize();

newVelocity.Set(newVelocity.x * speed, newVelocity.y * speed, 0f);

speed๋Š” ๋ฐ–์—์„œย ํ”Œ๋กœํŠธ๋กœ ์„ ์–ธ๋˜์žˆ์–ด


์—ฌ๊ธฐ์„œ ๋งˆ์ง€๋ง‰์— speed๊ณฑํ•ด์ฃผ๋Š”๊ฑธ ๋ฒกํ„ฐ.set๊ฐ€ ์•„๋‹ˆ๋ผ ๋ฒกํ„ฐ*speed ๋กœ๋Š” ๋ชปํ•˜๋Š”๊ฑฐ์•ผ? ๋ณด๋‹ˆ๊นŒ new ์ด๋†ˆ๋•Œ๋ฌธ์— ์•ˆ๋˜๋Š”๊ฑฐ๊ฐ™๋˜๋ฐ


set๊ฐ€์•„๋‹ˆ๋ผ ๊ทธ๋ƒฅ ๋ฒกํ„ฐ์— speed๋ฅผ ๊ณฑํ•ด๋ฒ„๋ฆฌ๋Š”๋ฐฉ๋ฒ•์€ ๋ญ๊ฐ€์žˆ์–ด?