public CCPoint ConvertTouchLocationToPoint(CCTouch touch, CCNode dragContainer) { var location = dragContainer.WorldToParentspace(touch.LocationOnScreen); location.Y = dragContainer.Window.WindowSizeInPixels.Height - location.Y; return(location); }
bool touchHits(CCTouch touch) { var location = touch.Location; var area = child.BoundingBox; return(area.ContainsPoint(child.WorldToParentspace(location))); }