Some small updates to the engine animation code
This commit is contained in:
parent
741a659bfc
commit
e259a2589a
1 changed files with 7 additions and 6 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue