Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collision for parallel line to line #14

Open
getdbjs opened this issue Apr 15, 2020 · 2 comments
Open

Collision for parallel line to line #14

getdbjs opened this issue Apr 15, 2020 · 2 comments

Comments

@getdbjs
Copy link

getdbjs commented Apr 15, 2020

I noticed that the collision is not detected between two parallel lines

@Lin-Rolover
Copy link

Lin-Rolover commented Apr 20, 2020

Since the parallel never intersects, because the slope of each is infinity or zero, the other question is when are perpendicular, when the angular coefficient of one of them is infinity.

Yes, and the formula is hard to understand

@jeffThompson
Copy link
Owner

@getdbjs – nope, you're right. I assumed that was a really unlikely case (since the lines would have to have the exact same start/end points for that to be the case which, with floats, is not going to happen very often) but can def add it.

@Lin-Rolover – thanks for clarifying. Would parallel and perpendicular be useful to add? (I suppose perpendicular is really just one kind of collision.)

KnifeOnlyI added a commit to KnifeOnlyI/CollisionDetection that referenced this issue Apr 28, 2021
KnifeOnlyI added a commit to KnifeOnlyI/CollisionDetection that referenced this issue Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants