[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Line Collision
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Line Collision
- From: Martin Kühne <mysatyre@xxxxxxxxx>
- Date: Sat, 18 Nov 2017 19:06:13 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 18 Nov 2017 13:06:37 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=uU3VbWjrndI/EUo14eF95+xnrGAHj4GEdUrbspNzD20=; b=FIJSN+CMolzDsyBm5Pk4NmXtwW6+D16ss9srS3RJ2LerMttbgdUn9NZNeBUZqRpHb3 lpDg/lajq4EW1HP0nEPg0Bn36Oe+isnaD5mJGBkx07EjxXZEWGWGOFGZmNKSS1iNKxxY myzCbu0J2eYWCD+VauxcI+n5BfzmF8iyefGSpIxdygsuqWn4YIV1Ptz4kzmFwJo5OquO AdCO7JCFb9vVM7IeEwBMFVnc2zf+sBJiGqjN0Anr8SSaDpNS1XNWpvkB9XDqt0BAvRSe q7wPF5eLRGQRvmpfh3Nm0IUlOyJypf0PxI/gA+g4VSx9qrZWipvLJOLOy95aq8h1gyeO SEVQ==
- In-reply-to: <CAONKL1ASySFswc3o=_pozGiGDGwkikQqNzGGaLZE3X8yM=xn6w@mail.gmail.com>
- References: <74aa7793-e1ce-4910-a6e5-837ee7d90ac6@googlegroups.com> <CAONKL1ASySFswc3o=_pozGiGDGwkikQqNzGGaLZE3X8yM=xn6w@mail.gmail.com>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
A central key in the whole task is gaining good control over which of
>, <, <=, >= you need to use to compare different intervals, so to say
whether either first's bottom is lower than second's top value or
whether first's top is lower than second's bottom value. But this kind
of interval comparison is only possible when you, as the second
exercise, are able to boil the problem down to actual interval
comparisons.
As I don't know how much linear algebra you need to catch up on here,
please ask away for any furhter clarification, maybe I or even
somebody else in this channel is able to take you through the task
from where you stand in a more specific manner.
cheers!
mar77i