갤럭시 검색 결과에서 행성 상세로 이동
This commit is contained in:
@@ -132,8 +132,10 @@ class GalaxyClock extends ChangeNotifier {
|
||||
if (_dragged != 0) {
|
||||
// 손이 닿아 있는 동안의 각속도는 **드래그 거리가 아니라 드래그 속도**를
|
||||
// 따른다. 거리로 누적하면 천천히 오래 끌기만 해도 팽이처럼 돌아 버린다.
|
||||
_velocity = (_dragged / dt * GalaxyMotion.dragSpinGain)
|
||||
.clamp(-GalaxyMotion.maxSpin, GalaxyMotion.maxSpin);
|
||||
_velocity = (_dragged / dt * GalaxyMotion.dragSpinGain).clamp(
|
||||
-GalaxyMotion.maxSpin,
|
||||
GalaxyMotion.maxSpin,
|
||||
);
|
||||
_dragged = 0;
|
||||
} else {
|
||||
// 지수 감쇠 — 프레임 간격이 흔들려도 같은 시간에 같은 만큼 준다.
|
||||
|
||||
Reference in New Issue
Block a user