title: body drawn at another position
body: <p>I have a CCSprite (in which i have a b2body); The scope is to create a sprite that moves with a body to a location and back;</p>
  
  <p>I create the b2body in this way:</p>
  
  <pre><code> if (_body) 
      {
          _world-&gt;DestroyBody(_body);
      }
  
  
      b2BodyDef bd;
      bd.type = b2_kinematicBody;
  
  
      _body = _world-&gt;CreateBody(&amp;bd);
  
      b2PolygonShape shape;
  
      b2Vec2 _p1, _p2 , _p1sub,_p2sub;
  
      _p1 = b2Vec2(point1.x/PTM_RATIO,point1.y/PTM_RATIO);
      _p2 = b2Vec2(point2.x/PTM_RATIO,point2.y/PTM_RATIO);
  
  
      shape.SetAsEdge(_p1, _p2);
      _body-&gt;CreateFixture(&amp;shape, 0);
  </code></pre>
  
  <p>After i created the body, i initialize the action:</p>
  
  <pre><code>id a1 = [CCMoveBy actionWithDuration:1 position:ccp(0,-self.position.y+destinationPoint.y)];
          id action2 = [CCRepeatForever actionWithAction:
                        [CCSequence actions: [[a1 copy] autorelease], [a1 reverse], nil]
                        ];
          [self runAction:action2];
  </code></pre>
  
  <p>on each frame, i update the body location </p>
  
  <pre><code> _body-&gt;SetTransform(b2Vec2(self.position.x/PTM_RATIO,self.position.y/PTM_RATIO), 0);
  </code></pre>
  
  <p>The thing is that they are both drawn but the sprite is in the correct position while the body is not; the moves are coherent </p>
  
  <p>FYI i use PTM_RATIO through out the game so this is surely not the problem</p>