弹簧与物理 · 弹起来的手感
速度继承Velocity
- 连贯
- 聪明
- 无缝
新动画从当前这一刻的实际速度接着走,而不是从头开始,所以动作看起来是连续的。
什么时候用它
用户中途打断正在播放的动画时用它;只在动画播完后再触发新动画的话用不上。
参数
read current velocity · pass as spring initial velocity · do not reset to 0
配方
速度继承 → read current velocity · pass as spring initial velocity · do not reset to 0
给 AI 的一句话
让这个动画可以被中途打断:被打断时读取当前的速度和位置,作为新弹簧动画(stiffness 300、damping 30)的初速度,不要归零重来。