In order to strike hard targets underground or warships and tanks with expected impact angle by missiles or guided bombs, trajectory shaping guidance law with terminal position and impact angle constraints is derived based on linear quadratic optimal control theory. The required accelera- tion expressed by impact angle and heading error is obtained in lag-free guidance system in order to find the optimal relationship of those angles in terminal phase. The adjoint systems of miss distance and impact angle error of first-order guidance system are established based on statistical linearization adjoint method (SLAM) in order to study the impact performances of the guidance law. Simulation results show that the miss distance and impact angle error of trajectory shaping guidance law are both according with the impact position and angle constraint and the required acceleration at impact can be decreased by an optimal relationship of impact angle and heading error.