gisellevonbingen / ZeroToThree

유니티 게임 개발 연습

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

블록이 떨어질 때 속도 조절, 흔들림 추가

gisellevonbingen opened this issue · comments

UIActionMoveToSpeed 수정함
현재 속도를 표시하는 CurrentVelocity, 속도 조절 값 Gain 추가
이동 완료 속도 임계 Inposition 추가
CurrentVelocity로 이동했을 때, 목표 지점을 지나 치면 CurrentVelocity에 Gain을 곱함
CurrentVelocity가 Inposition보다 작아지면 이동 완료 했다고 처리함

Gain, Inposition을 조절하여 이동시 헌팅하는것을 구현 가능