[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Help needed with basic 2D collision detection



Hello,
In the PAdLib Particles demo, try moving the particle source into a rectangle.  The points will move to the closest edge. 
In your game, I suggest accelerating your player by gravity every frame, then, if colliding, move the player out of the rectangle in the quickest way possible.  This will eliminate your problem because the player would be moved out of the blocks before any collision occurs.
HTH,
Ian