WPF 2D 碰撞检测

 

 

var intersectionDetail = path1.Data.FillContainsWithDetail(path2.Data);

if (intersectionDetail != IntersectionDetail.NotCalculated &&
    intersectionDetail != IntersectionDetail.Empty)
{
    // collision
}
posted @ 2015-01-20 14:52  马语者  阅读(800)  评论(0编辑  收藏  举报