NBA

McGrady trade haunts Knicks

If the Knicks did not make the Tracy McGrady/draft pick trade with the Rockets last February, there’s a good chance Carmelo Anthony would be a Knick today — alongside Amar’e Stoudemire.

The future assets that could have gone this fall to Denver instead went to Houston president Daryl Morey last winter — as TNT’s Steve Kerr recently pointed out. The “T-Cap” trade opened up cap room for two maximum contract players, but the Knicks only got one. And T-Mac turned into a bust, now playing in Detroit.

“We did it to clear cap room. We tried to get two big guys in here,” Knicks coach Mike D’Antoni told The Post. “It didn’t quite work out the way we wanted it to but the plan was good. We got Amar’e and a couple of guys out if it. We swung for the fences and it didn’t quite work out. But the plan was solid.”

The Rockets’ invasion of the Garden tonight is a reminder of the deal’s failure. The game also is imperative to win for several reasons, including its connection to the trade. There is no team Knicks president Donnie Walsh is rooting against more than the Rockets, with the possibility of the trade becoming even more disastrous than it already is.

On the surface, a loss to the Rockets at the Garden sends the Knicks onto their four-game West Coast trip on a five-game losing streak, with a 3-7 record and D’Antoni’s seat on the bench warmer.

Blowing a 21-point lead in Minnesota Friday against Kevin Love’s Wolves certainly didn’t help, either.

The Knicks begin the trip in Denver against Anthony and travel through Sacramento, Golden State and L.A. against the Clippers — the last being the lone game the Knicks will be favored in.

On a deeper level, the Rockets’ fortunes could directly cause the Knicks to lose their lottery pick in June if D’Antoni’s club does not make the playoffs.

Beyond giving up lottery pick Jordan Hill — whom D’Antoni once touted as the next Stoudemire — and their 2012 first-round pick, Walsh also gave the Rockets the rights to swap picks this year.

If the Knicks finish in the lottery, the Rockets will snatch that pick if they make the playoffs. In the only silver lining to the season’s start, the Rockets stumbled out of the gate to a 2-6 record. Worse, Yao Ming, out tonight with a sprained ankle, still isn’t ready for major minutes because of his foot problems.

Walsh has already admitted to regretting the draft-pick element of the Rockets’ trade as it became clear the Knicks didn’t have the assets Denver wanted to deal for Anthony.

The trade would have been worth it if the Knicks had nailed LeBron James and paired him with Stoudemire/Chris Bosh or Stoudemire with Joe Johnson/Dwyane Wade.

The Knicks have cap flexibility for 2011 if Anthony reaches free agency. But they would have had same flexibility without the trade, since Jared Jeffries’ contract expires this summer anyway. But now they have less young assets than the Nets, who are the clear favorites to land ‘Melo if he is traded, which would ruin another February for the Knicks.

marc.berman@nypost.com