British actress Rosamund Pike has gone from "Bond" girl to Jane Austen girl and now she's in "Gone Girl," an upcoming thriller costarring Ben Affleck and Neil Patrick Harris.

The 35-year-old plays the female lead, Amy Dunne, in an adaptation of Gillian Flynn's best-selling novel of the same name. Pike told Glamour that while she was thrilled to work with her seasoned costars, when it came to filming the steamy scenes, things got a little awkward.

"Neil [Patrick Harris, who plays Amy’s obsessed ex Desi] was incredible at that. We were in hysterics in the editing room. It was very funny doing [rehearsals for our sex] scene," Pike told Glamour. "[Neil and I were left alone] on that set for like two hours to make sure we could do it. But when it's just two of you, basically kind of f---ing on a bed, it feels so inappropriate."

While her life on set might have been tense at times, the pregnant actress reflected on how she balances her personal life with her and professional one.

"The question is really why do so many women’s careers take off just as they have children? Is it because you are risking everything in your relationship and the risk taker in you carries through into your professional life?" she asked. "You have less time to worry and overanalyze—maybe that’s it. Or the huntress instinct to provide for your family is awoken. [Either way,] with children you spend so much time re-experiencing the world as a child experiences it, and that has a nourishing effect on your imagination—in my job, imagination is key."

More On This...

Lucikly, she has great friends that the actress can turn to for support.

"Thank goodness for my friends: the girlfriends I can talk nonsense with…. The people who really know you are invaluable when your professional life means so many people are trying to know you. After all, being known is so very different from being well-known!"

WATCH: Charlotte McKinney on posing nude, deleting naked selfies