大约有 149 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
...不清楚, 让人以为从字面上看set是一个属性,或者更改transform。我设置了都不行。 结果看示例,在很不起眼的地方发现一个loop函数一直在修改定位才能用Tween... 2017-09-05 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20170905
用tween.to命令改变其位置 发现mesh 的 transform.positon日志打出来是变了,但是是画面上mesh是不动的 给带有digitBody的mesh 设置isKinematic 为true 用tween.to命令改变其位置 发现mesh 的 transform.positon日志打出来是变了,但是是画面上mesh是不...
来源: Laya_社区 发布时间: 20181024
...y/LayaMonkey.lh") as Laya.Sprite3D; scene.addChild(layaMonkey); layaMonkey.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); layaMonkey.transform.localPosition = new Laya.Vector3(0,1,0); layaMonkey.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); //移动模型 Laya.Tween.to(layaMonkey,...
来源: Laya_社区 发布时间: 20180112
...ternion=new Quaternion(); var dir:Vector3=new Vector3() ; Vector3.subtract(transform.position,sphere3D.transform.position,dir); Quaternion.rotationLookAt(dir,Vector3.Up,out); Quaternion.slerp(transform.rotation,out, Laya.timer.delta/1000,out1); transform.rotation = out1; transform.translate(v3) ...
来源: Laya_社区 发布时间: 20180726
[LayaAir3]3.3 sprite3d对象销毁触发脚本onDestroy获取transform异常 onDestroy时transform已经无法获取 demo展示了一种应用场景,清除tween失败 附件 : --> 3.3_sprite3d对象销毁触发脚本onDestroy获取transform异常_.zip 2025-10-31 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20251031
...Sprite3D = scene.getChildByName("monkey") as Laya.Sprite3D; aniMonkey.transform.position = new Laya.Vector3(math,math,math); } Laya.Tween.to(aniMonkey.transform.position, { x: math1, y: aniMonkey.transform.position.y, z: aniMonkey.transform.position.z }, 5000); 2018-01-17 0 0 分享...
来源: Laya_社区 发布时间: 20180117
3D模型tween旋转 Laya.Tween.to(sss.transform,{rotationEuler:new Laya.Vector3(0,0,0)},2000); sss是MeshSprite3D的节点,从unity导入laya的模型 运行上述代码后,模型不旋转。 使用sss.transform.rotationEuler=new Laya.Vector3(0,0,0),赋值有效 想问下,是我这个...
来源: Laya_社区 发布时间: 20200806
... var y = 1; Laya.timer.frameLoop(30, this, function () { y = y + 1; camera.transform.lookAt(model.transform.position, new Laya.Vector3(0, 1, 0), false); camera.transform.rotate(new Laya.Vector3(0, y, 3), false, false); }); 我想让摄像机围绕一个模型旋转做动画,用Tween没有起到作...
来源: Laya_社区 发布时间: 20170907
...position或者scale 试了一下好像不行,无论是Laya.Tween.to(lamp.transform, {localScale:Vector3.zero}, 500); 还是Laya.Tween.to(lamp.transform.localScale, {x:1, y:1, z:1}, 500);都没有反应,是不是我调用的方式不对呢 ? 2017-06-30 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20170630
[LayaAir3]3d刚体物体使用transform移动无效 3.2.1里都还是可以的,更新到3.2.2之后就没法控制了。 let cube = this.owner.getChildByName("Cube")as Laya.Sprite3D; cube.transform.position = new Laya.Vector3(0, 5, 0);------------------------------------------ 有人回复了,...
来源: Laya_社区 发布时间: 20241209