[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Directional collision detection.
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Directional collision detection.
- From: Ian Mallett <geometrian@xxxxxxxxx>
- Date: Sun, 22 Feb 2009 13:25:26 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sun, 22 Feb 2009 16:25:28 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=h8+a/FhRXWrewnOq/PwhgBNmkLIhIz5ziRsUNgZ2nG8=; b=Y5Yqy42zBM6wCyQgrGzHsp0FA7HB2J8o+GiHKxM7tuzPuJHKOFPeOqCIhog8J3EMsv NwVcZatZm7zi9ab/Fvm3fvkdiK+7RTuIEwJ/g416v/nalVA8W3qlgeIMhiFKzm9NUZ4/ XizXZ7I0wWJiBhweVIThe66N0UaXsVPkiCxRs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ho9XhXufhPKmC7caFTw8omaJGjRtfQv6H7KYUgQlALVyQk9u5pJFsGL0t5ysIn1Vmc clO6NHi7MNT3gfjBIJ4Md5S84x0vpMPpAAdYHc1faU55s21Nd2ZrjdO3HtkbLEDu6Hi1 LSvVUICLNXpEzOvQmbylPAOm1GsLmuHaIuxtw=
- In-reply-to: <49A1C1F7.6090506@xxxxxxxxx>
- References: <49A1C1F7.6090506@xxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Directional test:
if they collided:
if rect1 further left than rect2:
return left
etc.