美文网首页
egret_碰撞检测

egret_碰撞检测

作者: iOS小开发 | 来源:发表于2021-12-28 14:58 被阅读0次

    var shape = new egret.Shape();

    shape.graphics.beginFill(0xff00ff,1);

    shape.graphics.drawRect(100,100,200,200);

    shape.graphics.endFill();

    this.sceneManger.mainstage.addChild(shape);

    var status = shape.hitTestPoint(120,120,true);

    console.log(status);

    相关文章

      网友评论

          本文标题:egret_碰撞检测

          本文链接:https://www.haomeiwen.com/subject/ylupqrtx.html