I am not the man to talk about perfection but I can see some little improvements can be done.

I guess your path is contained in a horizontal plane. If so, you can compute the entity pan angle with trigonometrics and save some microticks.
Code:
my.pan = atan2v ( my.y - vecLastposition.y, my.x - vecLastposition.x );



'vecDirection' is declared but not used. I would delete the 'vDir' array and use 'vecDirection' instead.

Put the 'wait' instruction at the end of the loop. It is a good practice. Add it at other place when has a clear purpose and is needed. There is no problem as it is anyway.

Be consistent with spaces and line breaks. If one line has spaces between operators, parameters, etc and the next one has no spaces the reading is blurred. Especially when the reader has no idea.

Use some sort of hungarian notation. It really deserves the effort. grin