calculate hit position to local