找不到相关资料。
其次还想自定义碰撞框,要如何操作
使用Node api addComponent实现了。。
//add collider component
this.pengzhuang = this.node.addComponent(cc.CircleCollider);
this.pengzhuang.tag = 1
this.pengzhuang.radius = this.radius
找不到相关资料。
其次还想自定义碰撞框,要如何操作
使用Node api addComponent实现了。。
//add collider component
this.pengzhuang = this.node.addComponent(cc.CircleCollider);
this.pengzhuang.tag = 1
this.pengzhuang.radius = this.radius