osgAnimation.OutBounceFunction 类是一个简单的弹跳动画函数,可用于创建真实的物理效果。
class OutBounceFunction : public Interpolator
继承自 osgAnimation.Interpolator。
OutBounceFunction(float amplitude = 1.0f, float period = 0.3f);
amplitude: 弹跳振幅,默认为 1.0。period: 弹跳周期,默认为 0.3。获取弹跳振幅。
float getAmplitude() const;
设置弹跳振幅。
void setAmplitude(float amplitude);
amplitude: 弹跳振幅。获取弹跳周期。
float getPeriod() const;
设置弹跳周期。
void setPeriod(float period);
period: 弹跳周期。计算动画值。
void operator()(double time, Value &value) const
time: 当前时间。value: 输出的动画值。