convertToWorldSpace在一开始调用的时候位置有问题.

大家开发中有遇到么…就是比如Game.js有如下代码
var enemy = cc.instantiate(this.enemy);
this.node.addChild(enemy);
enemy.setPosition(this.getNewEnemyPosition());
enemy.getComponent(‘Enemy’).game = this;
enemy.getComponent(‘Enemy’).init();

Enemy.js

init: function (){
var worldPostion = this.node.convertToWorldSpace();

//这里获得的worldPostion不是正确的…
},

update: function (){
var worldPostion = this.node.convertToWorldSpace();

//这里获得的worldPostion一开始是错误的.之后就会正确.
}

@oubushixb

这是一个bug,我们会在后续的版本修复,感谢反馈。

好的…感谢cocos团队做的如此优秀的编辑器…让js工程师有了更多好玩的东西…

目前 world position 还不能跨帧使用。当帧内使用是没问题的。