I have set of players, and a ball, the players can kick the ball around the ground (not yet a football game, neither a Foosball game too ). Are there any algorithms/ patt开发者_StackOverflow中文版erns for addressing the problems with tracking the ball and taking decisions, Is that too much to ask.What I was looking at is something like a collision detection algorithm for the common problem of 2 objects interacting with one another.
You can use phys2d if you are using Java
Or box2D for C++
精彩评论