Can't create a perfect circle with beach balls.
#1

so I have this problem where I can't seem to be able to make a circle. instead of that it creates something .... similar

pics here there are 4 pictures


code:

pawn Код:
if (strcmp("/circle", cmdtext, true, 10) == 0)
    {
        // should create a perfect circle; radius 4; center of circle = (0,0);
        new Float:y1, Float:y2, pPos[3];
        new Float:test=-4.0;

        while(test<5) {


            y1 = -(floatsqroot(16-floatpower(test,2)));
            CreateDynamicObject(1598,test, y1, 10, 0, 0, 0,-1,-1,-1, 10000);
            y2 = (floatsqroot(16-floatpower(test,2)));
            CreateDynamicObject(1598,test, y2, 10, 0, 0, 0,-1,-1,-1, 10000);
            printf("i=%f\ty=%f\ty2=%f",test, y1, y2);
            test = test + 0.5;
        }
        return 1;
    }
Reply


Messages In This Thread
Can't create a perfect circle with beach balls. - by sleepysnowflake - 04.08.2013, 14:53
Re: Can't create a perfect circle with beach balls. - by Vince - 04.08.2013, 15:14
Re: Can't create a perfect circle with beach balls. - by sleepysnowflake - 04.08.2013, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)