issue : Updated ChipmunkTest.cpp.

This commit is contained in:
James Chen 2013-01-06 10:13:59 +08:00
parent 4d919465a5
commit 0c28510513
1 changed files with 14 additions and 14 deletions
samples/Cpp/TestCpp/Classes/ChipmunkTest

View File

@ -186,7 +186,7 @@ void ChipmunkTestLayer::addNewSpriteAtPosition(CCPoint pos)
CCPhysicsSprite *sprite = CCPhysicsSprite::createWithTexture(m_pSpriteTexture, CCRectMake(posx, posy, 85, 121));
parent->addChild(sprite);
sprite->setBody(body);
sprite->setCPBody(body);
sprite->setPosition(pos);
}