How can I test if a circle and a rectangle have collided? I need the penetration depth to move out of collision.
TIA
2D rectangle circle collision
Started by arctwelve, Sep 05 2005 11:41 PM
1 reply to this topic
#1
Posted 05 September 2005 - 11:41 PM
#2
Posted 05 September 2005 - 11:51 PM
Dave Eberly's site has great info about testing and calculating intersections:
http://www.geometric...tersection.html
There's some code for "Intersection of rectangles and circles" on that page.
http://www.geometric...tersection.html
There's some code for "Intersection of rectangles and circles" on that page.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











