Updated

Cameron Diaz does something she's never done before in her upcoming movie, "Sex Tape."

She gets naked on camera.

It's a first for the 41-year-old actress, who described the experience to Esquire magazine as "just a part of the role."

She says her co-star Jason Segel also gets nude on-screen.

She raved to the magazine about her life in her 40s.

"I like being 41. I love it. So much s--- just falls away. Fear, mostly. It’s the best age. That’s when a woman knows how to work things, or she doesn’t care about that anymore. You just stop being afraid. You don’t worry about what men think."

In "Sex Tape," Diaz and Segel play a bored married couple who decide to spice up things by filming a sex tape. After it's accidentally leaked, they try to get it back.

"I mean you see everything," she said of her nude scene.

She also has a labor scene in the film. Diaz has been open about not wanting children in real life, saying she never really wanted to be a mother.

The August issue of Esquire goes on sale July 18, the same date that "Sex Tape" hits theaters.

The Associated Press contributed to this report.