added calculation of hit position in XZ-plane