Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

求问pointInPolygon ( point, polygon )中 polygon是什么呀?

$
0
0

@758482981 写道:

我的代码如下, polygon是包围框还是点集
var touchLoc = touch.getLocation();
var ub = this.u.getBoundingBox()
if (cc.Intersection.pointInPolygon(touchLoc, ub)) {
this.up = true
cc.log('touchbigan2')
}

            cc.log('touchbigan1')
            return true;
        },
    }, this.node);

帖子: 5

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>