物理引擎射线检测在web-mobile版本中的问题

var manager = cc.director.getPhysicsManager();
var result = manager.rayCast(p1, p2)[0];

    if (result) {
        p2 = result.point;
        this.node_line.getComponent(cc.Graphics).circle(p2.x, p2.y, 5);
        this.node_line.getComponent(cc.Graphics).fill();
    }

    this.node_line.getComponent(cc.Graphics).moveTo(p1.x, p1.y);
    this.node_line.getComponent(cc.Graphics).lineTo(p2.x, p2.y);
    this.node_line.getComponent(cc.Graphics).stroke();

我在编辑器中测试的时候是正常的,但是我打了web-mobile版本的在手机浏览器中运行就出现了检测问题 感觉是整个检测的刚体下移来了。我附上图片:


这个是我使用编辑器在浏览器中预览的,下面的是打成web-mobile版在手机中运行的样子

有没有遇到过类似问题的朋友们,帮忙看一下 解决一下呢,谢谢了

感觉是适配的问题

哥们 问题有解决吗