Genbox / VelcroPhysics

High performance 2D collision detection system with realistic physics responses.
MIT License
662 stars 114 forks source link

Weird collisions on edges in rectangles #61

Closed Qzername closed 3 years ago

Qzername commented 3 years ago

So I have two bodies, I created them using BodyFactory.CreateRectangle, but when I collide them they have rounded edges

Example: image

And more, sometimes there are weird circle collisions, It seems that if more friction you have on objects, then is more likely to see these.

Example: https://drive.google.com/file/d/1DRBjEJQUu3m1VItDDznJO8dgSaZ-dCQ5/view

Even if the rectangles have small friction, still invisible circles appear. And no, these circles aren't defined in code.

Qzername commented 3 years ago

Just a simple mistake from me, I wasn't rotating the object