2.4.4射线方法不能使用吗?求指教!谢谢!

let ray = new cc.geomUtils.Ray();

ray.fromPoints(ray, cc.v3(0, 0, 0), cc.v3(0, 100, 0));

let ray = cc.geomUtils.Ray[“fromPoints”]( new cc.geomUtils.Ray(), pos1, pos2);
试试这样写呢

这样使用没有报错,但是创建出来的射线根本没有显示,不知道是否创建成功了。