Former Vice President Joe Biden got into a heated, profane argument over gun control with a worker during a tour of an auto plant under construction in Detroit Tuesday, at one point telling the hard hat he was “full of s–t” — and even asking him if he wanted to “go outside.”

Biden was making his way through a crowd amid the Mich­igan primary when the construction worker asked him if he was “actively trying to end our Second Amendment right and take away our guns.”

“You’re full of s–t,” Biden shot back.

“I support the Second Amendment,” Biden, 77, continued. “The Second Amendment, just like right now if you yell fire, that’s not free speech. From the very beginning I have a shotgun, I have a 20-gauge, 12-gauge, my sons hunt. . . . I’m not taking your gun away at all.”

The guy claimed an online video showed Biden saying he would take people’s guns away, as did former Texas Congressman Beto O’Rourke, a former presidential candidate who last week endorsed Biden.

“I did not say that. That’s not true. I did not say that,” the ex-veep said during the face-to-face encounter at the Fiat-Chrysler plant.

“It’s a viral video,” the guy pointed out to Biden, the two of them surrounded by a group made up mostly of construction workers wearing hard hats and safety vests.

“It’s a viral video like the other ones they’re putting out that’s simply a lie,” Biden replied. But the worker insisted it was Biden’s voice in the video.

“Wait, wait, wait, wait, we’ll take your AR-14s away,” Biden told him, pointing his finger at the man’s chest. (Biden probably meant AR-15s, since there is no such weapon as an AR-14).

“This is not OK,” the worker replied. But Biden shot back: “Don’t try me, pal . . . Do you want to go outside?”

“You’re working for me, man,” the hard hat shot back.

“I’m not working . . . don’t be such a horse’s ass,” Biden said.

As a senator from Delaware, Biden voted in favor of the 10-year Federal Assault Weapons Ban in 1994. As a presidential candidate, Biden said he favors reinstating the ban.

Biden has gotten into disputes on the campaign trail before.

In February he called a college student a “lying dog-faced pony soldier” when she asked him about his fourth-place finish in the Iowa caucuses.

And in December he dressed down a man in Iowa who asked him about son Hunter’s work in Ukraine for an energy company and whether the younger Biden was benefitting from his dad being vice president.

“You’re a damn liar, man. That’s not true. And no one has ever said that,” Biden told the man.