It took a while, but the Nets finally got going last night.

After sleepwalking through the early stages and finding themselves trailing by 10 at halftime to the league’s worst team, the Nets outscored the Bobcats 28-9 third quarter and 56-25 in the second half to pull away and earn a convincing 99-78 victory in front of 13,382 at Time Warner Cable Arena.

“We did not play with the same passion in the first half as we did in the second half,” Nets interim coach P.J. Carlesimo said. “We just defended better, and that’s how we won the game.”

After a sloppy and disjointed first half, the Nets (35-26) smothered the Bobcats in the second half. Charlotte (13-48), which has now lost 43 of its last 49 games, went 10 for 40 (25 percent) from the field after the break, while the Nets shot a blistering 22 for 34 (64.7 percent).

That surge was led by Joe Johnson, who went 6 for 9 from the field after the break to score 16 of his game-high 22 points.

“We hit shots, and we got stops,” said Deron Williams, who had 20 points, four rebounds and eight assists.