Forward Stromile Swift, the only player the Rockets have targeted in free agency, agreed to terms with the Rockets on Monday evening, Swift's agent, Andy Miller, said.

Swift spent almost two weeks since visiting the Rockets considering his options, including a strong push by the New Jersey Nets, but Miller said Swift, 6-10, decided the chance to play with Tracy McGrady and Yao Ming inspired him to take the Rockets' offer.

The Rockets, who are over the salary cap, could offer only the midlevel exception, expected to be worth between $28 million and $32 million over five years. He likely could have received greater offers, particularly in a sign-and-trade deal, but decided to end his free agency.

Swift, 25, has averaged nine points and five rebounds in five NBA seasons.

"He has decided to become a Houston Rocket," Miller said. "He's absolutely excited about playing with Tracy McGrady and Yao Ming. The Houston organization has been very consistent and adamant about getting him."