This simple demo has the character (red triangle) move to the target (green triangle) at a speed propotional to the distance vector between them, divided by the timeToTarget and clipped by the maximum speed. More complex dynamic demo in progress. Historical positions of the character are shown (faded red triangles), and these can be modified dynamically. Hit reset button to re-run demo with new parameter settings.
  1. top slider: radius = equals distance from target before we stop moving
  2. middle slider: maximum speed
  3. bottom slider: time to target = how many seconds it takes to get to the target
TODO LIST
  1. proper unit tests on everything ...
  2. would like to be able to scroll main object back and forward through path - just switch which clone is highlighted? unnecessary now we can re run with history detached?
  3. would like to have history path extended to destination state ...
  4. if clones recorded location of target when they were created, could have repeated history tracking moving target ...