[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] collision detection
On Aug 9, 2004, at 2:41 PM, enrike wrote:
sorry i just found the pointInPolygon.py in the code repository.
I haven tried it yet but looks like it could be the solution for many
of the mouse situations i need to handle .
But yet i am not sure about how to do this with circles. My maths are
too bad...
if anyone has some better solution please let me know
thanks
I think there is a nice FAQ for comp.graphics that you really ought to
go read.
Alternatively, a regular polygon with many sides is a good
approximation to a circle.
-a