mirror of https://github.com/axmolengine/axmol.git
issue #1640: Updated ChipmunkTest.cpp.
This commit is contained in:
parent
4d919465a5
commit
0c28510513
samples/Cpp/TestCpp/Classes/ChipmunkTest
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue