Deactivation체크하고 start도 체크했는데 Speer에 닿기도전에 시뮬레이션 시작하자마자 오브젝트가 날아가버리네요 혹시나싶어서 새파일열고 똑같이 실험해봤는데 이건...
... 스크립트 하나 붙이셔서 기본 중력 값 -9.81 private Rigidbody2D rb; private void Start() { rb = GetComponent<Rigidbody2D>(); rb.velocity = new Vector2(0, -9.81); 한번만 호출해도 초당...
addforce를 이용하여 캐릭터의 점프를 구현하고있는중인데 addforce내부에 들어가는 값은매번동일한데도 처음에는 높이뛰어올랐다가 그다음부터는 낮게뛰고 또...
유니티에서 공의속도를 GetComponent<Rigidbody>().AddForce(Vector3.forward * speed);로 매 업데이트마다 속도를 증가시키고 있다고할때 이공의 속도는 시간이 지날수록...
태그: 유니티, getcomponent, rigidbody, addforce, 속도, 제한, 게임개발, 오류
... GetComponent<Rigidbody>().veloctiy = movement * speed; GetComponent<Rigidbody>().rotation = Quaternion.Euler(0, 0, GetComponent<Rigidbody>().velocity.x * -tilt); 이...
... private Rigidbody2D rigid; private void Start() { rigid = GetComponent<Rigidbody2D>(); } // Update is called once per framek void Update () { if (Input.GetKey(KeyCode.W)...
maya로 공 움직이는거 simulation하고있는데요 공이 너무 느리게 움직여요 fx에서 rigid body선택하고 gravity랑 velocity랑 spin다 줘서 원하는 방향으론...