2D Polygon Collision Detection

前端 未结 4 1788
没有蜡笔的小新
没有蜡笔的小新 2020-12-31 10:36

Does anyone know a simple way to check if two polygons, especially rectangles, are colliding? I found a simple way to see if two are touching by just checking if a

4条回答
  •  借酒劲吻你
    2020-12-31 11:21

    Look up the Separating Axis Theorem. There's a tutorial here.

    It's quick, elegant, robust, not too hard, and has lots of resources.

提交回复
热议问题