1
0
Fork 0

Some small updates to the engine animation code

This commit is contained in:
ehofman 2003-12-24 14:56:17 +00:00
parent 741a659bfc
commit e259a2589a

View file

@ -2,18 +2,19 @@
prop = props.globals.getNode("/velocities/airspeed-kt"); prop = props.globals.getNode("/velocities/airspeed-kt");
walkSanta = func { walkSanta = func {
# if ( prop.getValue() < 1.0) { interpolate("/tmp/walk", 0, 1); } if ( prop.getValue() < 1.0) {
# else { interpolate("/tmp/walk", 0, 1);
settimer(walkSanta, 0.5);
} else {
time = 1-prop.getValue()/8000; time = 1-prop.getValue()/8000;
# When we're done, start it again:
settimer(walkSanta, 3*time);
interpolate("/tmp/walk", interpolate("/tmp/walk",
-0.5, time/2, -0.5, time/2,
0.5, time, -0.5, time, 0.5, time, -0.5, time,
0.5, time, -0.5, time, 0.5, time, -0.5, time,
0.0, time/2); 0.0, time/2);
# } }
# When we're done, start it again:
settimer(walkSanta, 5*time);
} }
settimer(walkSanta, 0); settimer(walkSanta, 0);
print("Done initializing Santa walk");