[]3D模式下使用Tween使模型移动如何写法

//载入并显示鱼模型
var fish = new Laya.MeshSprite3D(Laya.Mesh.load("fish/denglongyu/denglongyuANI-denglongyu.lm"));
scene.addChild(fish);
var fishmaterial = new Laya.StandardMaterial();
//漫反射贴图
fishmaterial.diffuseTexture = Laya.Texture2D.load("fish/denglongyu/denglongyu1.jpg");
fish.meshRender.material = fishmaterial;
fish.transform.localScale = new Laya.Vector3(0.001,0.001,0.001);
fish.transform.localPosition = new Laya.Vector3(0,1,0);
fish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0));
//移动鱼
Laya.Tween.to(fish,{x:-1},3000,Laya.Ease.linearIn,null)
这个Laya.Tween.to(fish,{x:-1},3000,Laya.Ease.linearIn,null)是不是写错了。。。应该怎么写啊。假设我要移动他到x为-1.z为-1
已邀请:

要回复问题请先

商务合作
商务合作