title: Cocos2d. Rotate point around another point without hard math calculations?
body: <p>I haven't seen easy examples about rotaion around a specified point. I tried something like this but it doesn't work:</p>
  
  <pre><code>//CCNode *node is declared
  //In a function of a subclass of CCSprite
  - (void)moveWithCicrlce
  {
  anchorNode = [CCNode node];
  anchorNode.position = ccpSub(self.position, circleCenter);
  anchorNode.anchorPoint = circleCenter;
  [anchorNode runAction:[CCRotateBy actionWithDuration:1 angle:90]];
  [self runAction:[CCRepeatForever actionWithAction:[CCSequence actions:[CCCallFunc actionWithTarget:self selector:@selector(rotate)], [CCDelayTime actionWithDuration:0.1], nil]]];
  }
  
  - (void)rotate
  {
  self.position = ccpAdd(anchorNode.position, anchorNode.anchorPoint);
  }
  </code></pre>