一个简单的场景

如果我旋转图中

方框指示的sprite3d的rotation,会导致子物体TargetGuard的transform.position不正确,好像子节点属于的坐标系变动了?
比如说,绳子不旋转的时候,我在代码中动下面圆盘的transform.position
this.block = s.getChildByName("target_root").getChildByName("PendulumCircleTarget").getChildByName("MoveBlockPivot").getChildByName("TargetGuard") as Laya.Sprite3D;
Laya.stage.on(Laya.Event.KEY_PRESS, this, this.KeyPress);
this.pivot = s.getChildByName("target_root").getChildByName("PendulumCircleTarget").getChildByName("MoveBlockPivot") as Laya.Sprite3D;
let newRot = new Laya.Quaternion(0, 0, 0, 0);
Laya.Quaternion.createFromYawPitchRoll(0, 0* (Math.PI / 180), 0, newRot);
this.pivot.transform.rotation = newRot;
..............................................
if (e.keyCode == 97) {
// console.log("a");
let newPos = new Laya.Vector3(this.block.transform.position.x + 0.1, this.block.transform.position.y, this.block.transform.position.z);
console.log(newPos.x);
this.block.transform.position = newPos;
}
else if (e.keyCode == 100) {
// console.log('d');
let newPos = new Laya.Vector3(this.block.transform.position.x - 0.1, this.block.transform.position.y, this.block.transform.position.z);
console.log(newPos.x);
this.block.transform.position = newPos;
}[/code]能够正确的左右移动
如果我让绳子旋转一点[code] this.pivot = s.getChildByName("target_root").getChildByName("PendulumCircleTarget").getChildByName("MoveBlockPivot") as Laya.Sprite3D;
let newRot = new Laya.Quaternion(0, 0, 0, 0);
Laya.Quaternion.createFromYawPitchRoll(0, 20 * (Math.PI / 180), 0, newRot);
this.pivot.transform.rotation = newRot;
这个时候直接操作transform.position的xyz,都是不按照世界坐标系的上下左右来移动,而是一个很奇怪的坐标系:

unity场景和laya工程都在附件中,麻烦帮忙看一下
附件:
父节点旋转子节点世界坐标系问题.zip