Search found 78 matches

by Kyosaur
Tue Jul 13, 2010 4:56 am
Forum: Programming Discussion
Topic: A small coding question
Replies: 16
Views: 1383

Re: A small coding question

I think I'm really close to solving this, as long as I understand correctly. Ok, here we go hope this can help but maybe not, it's 6:00am and I haven't slept yet. Warning: messy solution follows. First, we need to see if the ball would land out of the circle. ballPotentialX = playerX + cos(playerTo...
by Kyosaur
Tue Jul 13, 2010 4:05 am
Forum: Programming Discussion
Topic: A small coding question
Replies: 16
Views: 1383

Re: A small coding question

I'm not quite sure exactly what your doing here but what i would do would be to have a point in circle function where you pass in the soccer position and the circle origin and radius or something. Then if the point is not in the circle undo the last movement of the ball. I'm not going to explain po...
by Kyosaur
Tue Jul 13, 2010 3:03 am
Forum: Programming Discussion
Topic: A small coding question
Replies: 16
Views: 1383

A small coding question

Hi, im new to your forum (stumbled across your youtube vids and became hooked lol) :D. My question is more math orientated than programing, regardless its something i drastically need help with. Im making a soccer script, and i'm having a small issue that i just cant work out. Its sort of hard to ex...