In combat you need to manually steer around obstacles. Use SHIFT to appoint waypoints around threats.

What your projectile will hit is already shown (for spells anyway), hover over the target and it will tell you exactly if it will instead hit an earlier target isntead, so I wonder what's your question there...?