The type to interpolate, either vector or quaternion.
ref The value to interpolate.
The starting value for interpolation.
The target value for interpolation.
[default=lerp] The function to use for interpolation.
The ID of the task.
scheduleInterpolateTask( position, startNode, endNode, 100.msecs );
1 import std.stdio; 2 3 writeln( "Dash Tasks scheduleInterpolateTask unittest 1" ); 4 5 vec3f interpVec = vec3f( 0, 0, 0 ); 6 vec3f start = vec3f( 0, 1, 0 ); 7 vec3f end = vec3f( 0, 1, 1 ); 8 scheduleInterpolateTask( interpVec, start, end, 100.msecs ); 9 10 while( scheduledTasks.length ) 11 { 12 Time.update(); 13 executeTasks(); 14 } 15 16 assert( interpVec == end );
Schedule a task to interpolate a value over a period of time.