[]3d中 在update里对局部坐标赋值,当父物体运动起来就会有问题

public _lateUpdate(state: Laya.RenderState): void {
super._lateUpdate(state);



this.gun.transform.localPosition=this.pos;
}
已邀请:

183*****755

赞同来自:

用clone(),如果直接赋值,很容易出现引用错乱!

要回复问题请先

商务合作
商务合作