분류 전체보기71 가상조이패드 http://carrotclub.tistory.com/entry/%EA%B0%80%EC%83%81-%EC%A1%B0%EC%9D%B4%EC%8A%A4%ED%8B%B1-%EA%B5%AC%ED%98%84?category=535605 2018. 10. 2. 3d 수학 기초 http://lab.gamecodi.com/board/zboard.php?id=GAMECODILAB_Lecture_series&no=121&z= 2018. 10. 1. 체력 비율 계산 hpBarSlider.value = (float)currentHP/(float)maxHP 2018. 9. 12. 가감속 private float speed = 0f; private float _maxSpeed = 30f; private float forceMagnitude = 6f; private Vector3 movement = Vector3.zero; void FixedUpdate() { _move = Input.GetAxis("Vertical"); Move(0f, _move); } void Move(float h, float v) { if (v != 0 || h != 0) { // Set the movement vector based on the axis input. movement.Set(h, 0f, v); speed = Mathf.Min(speed + forceMagnitude * Time.deltaTime, _.. 2018. 9. 12. 이전 1 ··· 12 13 14 15 16 17 18 다음