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");
walkSanta = func {
# if ( prop.getValue() < 1.0) { interpolate("/tmp/walk", 0, 1); }
# else {
if ( prop.getValue() < 1.0) {
interpolate("/tmp/walk", 0, 1);
settimer(walkSanta, 0.5);
} else {
time = 1-prop.getValue()/8000;
# When we're done, start it again:
settimer(walkSanta, 3*time);
interpolate("/tmp/walk",
-0.5, time/2,
0.5, time, -0.5, time,
0.5, time, -0.5, time,
0.0, time/2);
# }
# When we're done, start it again:
settimer(walkSanta, 5*time);
}
}
settimer(walkSanta, 0);
print("Done initializing Santa walk");