Shia LaBeouf Megan Fox “Hooked Up” On Set Of “Transformers”

Shia LaBeouf says the onscreen chemistry fans saw between him and his former Transformers love interest Megan Fox in the first two installments of the robot-battling franchise was anything but fiction. According to the 25-year-old actor — dubbed “Hollywood’s Last Bad Boy” in an interview for Details’ August issue — he and the bombshell hit the sheets at least once during their time as co-stars. It’s unknown, however, whether the alleged fling took place during Meg’s on-again/off-again courtship with her now husband, 90210’s Brian Austin Green.

When asked by Details reporters if he’d ever been intimate with Megan, Shia nodded in the affirmative. Oh Shia, didn’t your mother ever tell you not to kiss and tell?

“Look, you’re on the set for six months, with someone who’s rooting to be attracted to you, and you’re rooting to be attracted to them. I never understood the separation of work and life in that situation. But the time I spent with Megan was our own thing, and I think you can see the chemistry onscreen,” explains the loose-lipped former Disney star, previously romantically-linked to pop star Rihanna.

Fox had been dating actor Brian since they met on the set of ABC’s Hope & Faith in 2004. The pair got married last summer. When asked if Megan, 25, was with Green at the time of her tryst with LaBeouf, Shia skated around delivering a straight answer. Instead he said: “I don’t know, man. I don’t know. I don’t know. I don’t know,” repeating the phrase 12 separate times, before adding: “It was what it was.”

The more Shia keeps talking, the more trouble he seems to make for po’ unemployed Megan.

First, he suggested in a May interview that Fox was uncomfortable playing sex symbol Mikaela and that her “Spice Girl feminism” led her to pull out of the series. The erroneous claim led Transformers director Michael Bay to clarify the situation — which meant revealing that series executive producer Steven Spielberg demanded Fox be fired for comparing Bay to Hitler in an interview.

An embarrassing truth for the Florida-born starlet.

Megan was replaced by Rosie Huntington-Whiteley in the third Transformers film, Dark of the Moon, opening in theaters this weekend.