갤럭시 검색 결과에서 행성 상세로 이동

This commit is contained in:
Sn-Kinos
2026-10-05 17:39:23 +09:00
parent 54d0b23260
commit 8a1b824307
11 changed files with 394 additions and 171 deletions
+4 -2
View File
@@ -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 {
// 지수 감쇠 — 프레임 간격이 흔들려도 같은 시간에 같은 만큼 준다.