Stevie G #1 Should the direction vectors not be dx-sx, dy-sy & dz-sz instead of the way you have them?You may want to use floats for the function params too.Stevie