title: cocos2d setasedge issue
body: <p>In cocos2d version v1.0.1</p>
  
  <pre><code>        groundBox.SetAsEdge(left,right);
  </code></pre>
  
  <p>It needs to not use the SetAsEdge as an error saying that the method doesn't exist, which makes sense as it was removed in a previous version 
  However I'm unsure of how to do this as its not creating a box and I'm unsure instead its creating multiple lines using an array of vertexs (from my understanding) how do I do it using the new</p>
  
  <pre><code>- (void)createGroundEdgesWithVerts:(b2Vec2 *)verts numVerts:(int)num 
                     spriteFrameName:(NSString *)spriteFrameName {
      CCSprite *ground = 
      [CCSprite spriteWithSpriteFrameName:spriteFrameName];
      ground.position = ccp(groundMaxX+ground.contentSize.width/2, 
                            ground.contentSize.height/2);
      [groundSpriteBatchNode addChild:ground];
  
      b2PolygonShape groundShape;  
  
      b2FixtureDef groundFixtureDef;
      groundFixtureDef.shape = &amp;groundShape;
      groundFixtureDef.density = 0.0;
  
      // Define the ground box shape.
      b2PolygonShape groundBox;       
  
      for(int i = 0; i &lt; num - 1; ++i) {
          b2Vec2 offset = b2Vec2(groundMaxX/PTM_RATIO + 
                                 ground.contentSize.width/2/PTM_RATIO, 
                                 ground.contentSize.height/2/PTM_RATIO);
          b2Vec2 left = verts[i] + offset;
          b2Vec2 right = verts[i+1] + offset;
  
          groundShape.SetAsEdge(left,right);
  
          groundBody-&gt;CreateFixture(&amp;groundFixtureDef);    
      }
  
      groundMaxX += ground.contentSize.width;
  }
  </code></pre>