feat: 로컬 게임 벽에서 벽으로 튕길 때 너무 많이 튕기지 않게 함 #497
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✅ 풀_리퀘스트 체크리스트
🔄 변경 사항
무엇을 합니다!
로컬 게임 벽에서 벽으로 튕길 때 너무 많이 튕기지 않게 함
Math.abs(ball.direction.x <= 0.2)
일 경우, 계속해서 벽에서 벽으로 튕긴다 판단hitCountOfWall
증가hitCountOfWall % 5 === 4
(= 4번 연속으로 벽에 부딪힐 때마다) 방향벡터 x 성분에 랜덤 계수 곱함Math.abs(ball.direction.x) <= 0.01
일 경우,60 < c < 80
의c
를 곱함3 < c < 8
의c
를 곱함로컬 게임에서 리셋 시, x와 y 성분 특정 범위 내에서 초기화되도록 함
📎 변경한 이유
closes: #494
👨🏻💻 테스트 체크리스트
default.mov
📌 변경 및 주의 사항