ideas on collision in a soccer game?

Im writing a soccer game and have a problem with the collision method…
All players extends Rectangel and i use intersects to see if anyone collides…
You see the game like looking down on it 2D.

I cant get a nice looking method… I have tried to set that they shuld move back 10px in opposite dir… but that is bad… dont work… :’(

anyone have any tips? ???

1 question you should ask yourself…
is a Player a Rectangle?

i’ve not seen too many rectangles running around football pitches :confused:

however, your representation of a player has a rectangular collision boundary.

What im trying to get at, is Player should not extend Rectangle, its bad design.

as to the problem with regard to collision resolution (and infact collision detection in a football game as a whole)
I would suggest that players don’t need to collide at all.
(with the 1 exception of slide tackling, but that doesnt realy require a resolution, both players just slide 2 a stop)

Have a look at Sensible Soccer (the greatest football game ever written, IMHO :D) you should be able to get a copy off any good abandonware site.