[Bug] 2.0.9 设定 node.position.x 无效

cocos creator 2.0.9
如图
这个问题浪费我好几个小时 …

这么基本的 api 都有问题,真的是 …

呃,童鞋,你应该要 node.x = 0; 才对

如果我没记错, node.position 在js里应该是一个getter,取得v2的instance

node.x 确实可用,感谢

但这个设计应该要吐槽一下,node.x 一点都不直觉

我要参考另一个 position 我需要这样写 node1.position = node2.position
如果只要参考 x 的话,直觉上就会这样写 node1.position.x = node2.position.x

照这个面版看 x 在 position 下面才对,在写作却要 node.x ,真的很奇怪
还有,只有 getter 的话在 d.ts 应该要加 readonly 吧?

看文档比直觉要靠谱的多哟 https://docs.cocos.com/creator/2.1/api/zh/classes/Node.html

不知道为什么给节点赋值坐标一直报错
node.position=cc.Vec2(x,y);
报错
CCNode.js:2072 Uncaught TypeError: Cannot read property ‘x’ of undefined

但是我另外用 console.log()对这个坐标做输出显示没有问题

用node.setPosition(cc.Vec2(x,y)), 直接设置position没用 这个值没set方法 只能展示 改他没用
https://github.com/cocos-creator/engine/blob/79b9133d6e0e44b4b8f033ba86231ae21522f2dc/cocos2d/core/CCNode.js#L618
/**
* !#en The position (x, y) of the node in its parent’s coordinates.
* !#zh 节点在父节点坐标系中的位置(x, y)。
* @property {Vec2} position
* @example
* cc.log("Node Position: " + node.position);
*/

    /**