Children aren't much of a legacy either. They have 50% of your DNA and nurture. Grandkids 25%. Grand-grandkids 12.5%. Within a few generations your contribution is watered down to almost nil.
Children are amazing in their own right, but they're not exactly a legacy. If you want legacy, write a good book, start a successful company, etc; ideas are things that can become legacy.