Re: A small coding question
Posted: Wed Jul 14, 2010 1:18 am
Here's a thought from a math friend of mine: get the line from the player to the soccer ball, figure out where it intersects with the edge of the circleKyosaur wrote:Ok, keep me posted :D.X Abstract X wrote:It's almost 8:00am now, my head is spinning in all these sketches I'm making, I'm probably overcomplicating this. I'm going to bed, I'll have another look tomorow. I'm pretty sure I have this all worked out if I can figure out how to calculate one angle that I'm missing.
If you think it would be easier, i can change the area to a rectangular one (although if i do that, i lose my "bounce" affect, and will have to learn how to do basic physics ).
You do know that the ball does not come back with the exact angle on a circle right?(although if i do that, i lose my "bounce" affect, and will have to learn how to do basic physics )