PhysicsSprite* PhysicsSprite::createWithSpriteFrame(SpriteFrame *pSpriteFrame) { PhysicsSprite* pRet = new (std::nothrow) PhysicsSprite(); if (pRet && pRet->initWithSpriteFrame(pSpriteFrame)) { pRet->autorelease(); } else { CC_SAFE_DELETE(pRet); } return pRet; }