[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] exact collisions
- To: pygame-users@xxxxxxxx
- Subject: [pygame] exact collisions
- From: gen2n <gen2n@xxxxxxxxx>
- Date: Mon, 04 Apr 2005 10:38:54 +0200
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Mon, 04 Apr 2005 04:40:12 -0400
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Mozilla/5.0 (Windows; U; Win98; cs-CZ; rv:1.7.5) Gecko/20041217
I would need to check collision between a moving box and static polygon
(not surrounding rectangle). I thing I got two chances and both I do not
know ho to handle.
1/ somehow to use collisions-like function with respect on alfa channel
2/ polygon could be of the same color, so I could check ech pixel color
under (or nearby) my flying box.
Could you give me a kick how do do each of them and which could be better?
Pavel
--
gen2n
ICQ 176015287