Problem
Attched collider 2d script, physical object loose bouncy after few bounce and slide along surface.
It would be easy to understand if you have a look at the video below.
reproduce project setting
Test project looks like above, has 4 2d box collider and a circle collider which bounces inside a box.
The script just give a force on start of the project.
This Physics Material 2D make the circle loose it's force gradually.
Cause
Theres is a setting in Unity Physics 2D which consider collision to inelastic collision, called velocity threshold.
Edit > Project Settings > Pysics (2D) > Velocity Threshold
When a collision has lower velocity than the threshold preset. It is considered as an inelastic collision.
Solution
Lower the Velocity Threshold value.
Result
The circle bounces well though has slow velocity
'Unity > 팁' 카테고리의 다른 글
유니티 애드몹 리워드 비디오 보상 설정 (0) | 2019.08.21 |
---|---|
유니티 안드로이드 앱 번들 사용 방법 (2) | 2019.08.13 |
유니티 UI 클릭 영역 확장 (0) | 2019.07.30 |
유니티 MAC Application.persistentDataPath 경로 이동 (0) | 2019.06.19 |
유니티 파티클 자동 제거 (0) | 2019.04.17 |