Shia LaBeouf has given a personal, revealing interview to Details magazine, and in it he says he and Megan Fox hooked up while filming Transformers ... and she might have been dating hubby Brian Austin Green at the time.

LaBeoufDetailsCover230.jpgWhen asked if he and Megan hooked up, Shia "nods affirmatively," says the article. Shia is quoted:

    "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."

And as for whether she was with Brian Austin Green at the time, here's an excerpt from the article:

    "I don't know, man. I don't know. I don't know. I don't know. . . ." — repeating the phrase exactly 12 times with various intonations, as if trying to get it just right. Finally, he says, "It was what it was."

Shia also dishes the dirt on his former flames Isabel Lucas and Carey Mulligan. Read what he said after the jump!