Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Replace >= and <= with > and < in ArcadePhysics2D.intersects() #146

Merged
merged 1 commit into from Oct 15, 2016
Merged

Replace >= and <= with > and < in ArcadePhysics2D.intersects() #146

merged 1 commit into from Oct 15, 2016

Conversation

na-sa-do
Copy link
Contributor

@na-sa-do na-sa-do commented Oct 8, 2016

If collides() is called, then the pair of bodies it was called with are
no longer considered intersecting, even though one would probably expect
a thing that is on top (e.g.) of another to qualify as 'colliding'. This
fixes that counterintuitive behavior.

First PR, please be gentle. In particular, apologies if I'm supposed to open an issue for tracking things like this. I'm really not sure.

If collides() is called, then the pair of bodies it was called with are
no longer considered intersecting, even though one would probably expect
a thing that is on top (e.g.) of another to qualify as 'colliding'. This
fixes that counterintuitive behavior.
@bilou84
Copy link
Contributor

bilou84 commented Oct 15, 2016

Yeah I agree that makes sense. I test a bunch of games we have that uses ArcadePhysics2D and everything seems to be fine.

Also your PR is very good. Code diff is clean and you explained clearly what you wanted to fix.
Good job 👍

@bilou84 bilou84 merged commit 76e3ff9 into superpowers:master Oct 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants