Ab initio molecular dynamics simulations reveal how recoil direction and charge transfer influence defect formation in AlN. The results help clarify which atomic defects may form under irradiation and how those defects can alter the material’s electronic and optical behavior.