c# - Finding the points of contact between two convex polygons -
okay, trying create simple 2d polygon physics engine experience. here know (plus sources want find out:
-how determine if polygons intersecting using sat method (http://elancev.name/oliver/2d%20polygon.htm)
-how find normal of collision finding minimum translation axis
-how respond collision via implulse (http://chrishecker.com/rigid_body_dynamics#articles)
there 1 thing keeps eluding me. is, how find points of contact between 2 intersecting polygons. going upload simple picture illustrate mean, seems not able yet.
specifically on is:
-determining sides and/or points colliding
-this includes when polygons intersecting
-getting vector location of each contact point
i appreciate on because have been searching while no luck.
thanks. ~toms jensen
after doing more digging found looking for. found rather written example (in c#) of technique called polygon clipping. method finds contact points in world coordinates. goes through steps , code implementation multiple different situations.
here url: http://www.codezealot.org/archives/394
Comments
Post a Comment