circle creation and getting its Position

  • Shubh2137
    Likes 0

    Problem Description

    How to create Circle in cocos2dx and how to get its position ?

    im creating circle using drawDot function of DrawNode class but not able to get its position.

    code using C++ :

    DrawNode *drawnode=DrawNode::create();

    drawnode->drawDot(position,radius,Color4f);

     

    Now i want to find location of drawn object. i.e. circle

     


  • Sonar Systems admin
    Likes 0

    You could use a sprite which would be simpler.

  • Shubh2137
    Likes 1

    i did this by setting position of node object to circle position. and its working…

    Ty smiley

  • Sonar Systems admin
    Likes 1

    Great to hear :D

Login to reply