How to rotate the sprite alone and sprite with b2Body in cocos2dx | Techbirds
*SPRITE ROTATION WITH SOME PARTICULAR ANGLE IN PARTICULAR DURATION CCSprite *test=CCSprite::create(“sprite.png”); test->setPosition(ccp(winSize.width/2,winSize.height/2)); test->setAnchorPoint(ccp(0.5,0.5)); CCRotateBy *rot=CCRotateBy::create(30, 360); Here,the sprite named as test is positioned in the centre of the screen and its anchor point is set at the centre of the sprite,anchor point is needed to be set somewhere since the sprite will