Commit f5e1176
fix: proportional speed scaling for +/- keys in bounce demo
Replace impel()/dampen() calls with proportional 15% velocity scaling.
The old impel() had a fixed-kick path for slow spheres that caused
100x speed jumps when a dampened sphere crossed the speed threshold.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent fe8b224 commit f5e1176
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
436 | 440 | | |
437 | 441 | | |
438 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
439 | 447 | | |
440 | 448 | | |
441 | 449 | | |
| |||
0 commit comments