Plus: why Joel Edgerton was the only person who could play the leading role.