Video Experimenter object tracking

If your "hardware + software" infrastructure could provide X Y (in some cases Z) coordinates of the object, than tracking is very simple operation:
Direction = New(x, y, z) - Old(x , y, z) ;
Speed = New(x, y, z) - Old(x , y, z) / Time;
Acceleration = New(speed) - Old(speed) / Time; etc.
Creating a buffer for coordinate samples/data, allows to reconstruct complex trajectory.

You can download a code from here, which shows the idea:
http://fftarduino.blogspot.com/2011/12/arduino-laser-3d-tracking-range-finder.html