Hardoncollider goes crazy with third shape
Posted: Wed Feb 13, 2013 6:54 pm
So I was playing around with hardoncollider the other day, and I found this weird issue. With two shapes colliding, everything works beautifully. But whenever I add a third shape, even if it's nowhere near the other two, the collision goes crazy, with shapes getting caught in each other.
I'm thinking that it has something to do with the separating vector, but I'm not really sure how that works.
I've uploaded a .love. If you move the smaller circle into the square, you should see it get caught. (Although, I've noticed it only does it like 2/3rds of the time )
If you go into the code, you can comment out the two lines that create the extra shape, and see the collision go back to working perfectly.
Any ideas?
I'm thinking that it has something to do with the separating vector, but I'm not really sure how that works.
I've uploaded a .love. If you move the smaller circle into the square, you should see it get caught. (Although, I've noticed it only does it like 2/3rds of the time )
If you go into the code, you can comment out the two lines that create the extra shape, and see the collision go back to working perfectly.
Any ideas?