Updated

Olivia Munn has a bizarre way of getting motivated to hit the gym.

The "X-Men: Apocalypse" actress credits a hypnotist for helping her work on her fitness.

"I was going to a hypnotist to help me with my OCD and trichotillomania (hair pulling). One day I told him I didn’t work out, and he said, 'What do you mean?' I replied 'I don't know. I just kind of don't. I yo-yo,'" Munn, 35, recalled to Good Housekeeping. "He said, 'You have to! It's good for your anxiety and depression.' So during one of our sessions, he hypnotized me."

WATCH: Olivia Munn Believes Celebrity Selfies Are Overrated

Since then, the actress can't get enough of working out! "That was on a Friday, and by Monday I was working out every day at 6 a.m.," she said. "If I missed a session, I'd double up and do it the next day. Now I feel so much stronger. I remember running up the steps one day and thinking, This is strange. I could do this a hundred times and be totally O.K."

WATCH: Olivia Munn and Aaron Rodgers Have Seriously Impressive Sword Skills

Munn might also want to look into hypnosis to help her refrain from junk food!

"Sometimes I wish I had more self-control. I'll give myself a bunch of excuses, like I'm tired, I’m shooting or I need this cookie," she confessed. "I'm not someone who can eat whatever she wants and have it not affect her. [After I splurge] I think to myself, I'm going to regret this -- not because I'm going to put on weight, but because I can actually feel a difference when I’m eating poorly. When you’re trying to be healthy, you can feel the difference if you eat something bad."

NEWS: Kristin Cavallari Thinks She's Hotter Than Olivia Munn

And Munn certainly splurges! "There was a tray of Rice Krispies Treats [at the shoot today]. I've had two bags of sour-cream-and-onion chips," she admitted. "Last night, I had creamed corn and mac’n’cheese and two and a half pretzel bread sticks before my meal came!"