摘要: 1 // 距离 2 getDistance:function(start, end){ 3 var pos = cc.v2(start.x - end.x, start.y - end.y); 4 var dis = Math.sqrt(pos.x*pos.x + pos.y*pos.y); 5 r 阅读全文
posted @ 2020-07-06 18:51 f-wind 阅读(4917) 评论(0) 推荐(0) 编辑