1. 程式人生 > >WPF 2D 碰撞檢測

WPF 2D 碰撞檢測

contains var www. calculate cti left not 碰撞檢測 ins

原文:WPF 2D 碰撞檢測

 

 

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

if (intersectionDetail != IntersectionDetail.NotCalculated &&
    intersectionDetail != IntersectionDetail.Empty)
{
    // collision
}

WPF 2D 碰撞檢測