范例中碰撞平台的游戏。
onCollisionEnter: function (other, self) {
this.node.color = cc.Color.RED;
console.log(self);
console.log(other);
}
self 打印出来是这个 - 没有touchingX, Y

other 打印出来是这个, 有touchingY

但是查了文档和API里面都没有提到。是不是文档写得太随意了一点啊。哪位大神能帮忙解释下吗?
范例中碰撞平台的游戏。
onCollisionEnter: function (other, self) {
this.node.color = cc.Color.RED;
console.log(self);
console.log(other);
}
self 打印出来是这个 - 没有touchingX, Y

other 打印出来是这个, 有touchingY

但是查了文档和API里面都没有提到。是不是文档写得太随意了一点啊。哪位大神能帮忙解释下吗?
touchingY 又不是 collider 里面的东西。。。
这个只是 platform 里添加上去的方便使用的字段
谢谢,因为我看代码里面并没有 this.touchingY, 或者 var touchingY之类的声明,所以以为是对象里面本来就有的。原来other.touchingY = true; 这样也可以声明。