public Vector2 startVelocity = new Vector2(10f, 10f);
rb.velocity = startVelocity;
// velocity는 x축 ,y축 의 속도 지정 가능
'UNITY > Unity 개념' 카테고리의 다른 글
[C#/Unity] transform의 position과 rigidbody의 position 차이점(chat GPT 답변) (0) | 2023.07.03 |
---|---|
[C#] Vector2 start_velocity = new Vector(10f, 10f); (0) | 2023.07.01 |
[C#] Time.timeScale을 이용하여 게임 오버, 다시시작하는 방법 (1) | 2023.06.28 |
Input 종류 (0) | 2023.06.01 |
[골드메탈_공룡런 B2 리메이크] Scoller 클래스에서 ChildCount 하는 이유 (1) | 2023.05.20 |