I didnt have this part.
dist.y = 0;
dist.z = 0;
Thx for all your help man I am really stupid sometimes too. It all worked out fine in the end so thats what counts for me.

Last edited by FutureRaptor; 11/25/10 00:45.