5 InterpolationAction::InterpolationAction(Mode m):
11 void InterpolationAction::start(float b, float d)
15 interpolate(0.0f, 0.0f);
18 void InterpolationAction::tick(float b, float d)
22 float t = (b-start_beat)/duration;
23 float dt = d/duration;
28 dt = t-(3-2*dt)*dt*dt;
33 interpolate(1.0f, 1.0f);
36 void InterpolationAction::end(float)
38 interpolate(1.0f, 0.0f);
42 Action::Loader::Loader(Action &a, Demo &d):
43 DataFile::ObjectLoader<Action>(a),