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