大约有 155 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0032 秒)
...englongyu/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...
来源: Laya_社区 发布时间: 20170918
请教关于transform根据目标旋转计算 将transform A 的 z转向 B,然后将transform A的 y 转向C,应该怎么做? 就是用 lookAt 转向 B 之后,想算出来transform y轴 和 C 平行于 transform XY面的夹角。 附件 : --> 2019-12-19 添加评论 已悬赏15元 --> 分...
来源: Laya_社区 发布时间: 20191219
...万向锁的问题(不知道是不是我理解错了)。 3.想参考 transform.rotate()转化为四元素Quaternion来实现,可是Quaternion的属性是只读的,没有set方法,也没办法做缓动。 2017-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20170829
加了刚体的物体 调用transform.rotate旋转它时,会回到原始的位置 不管使用laya自己创建的模型还是unity导出的模型,加上刚体后,rotate它的时候位置会回到最开始的位置,demo里面我现在时加了个定时器 在onIntervalTime 每隔2秒调用...
来源: Laya_社区 发布时间: 20200701
... // 如下 /** sp3d.transform.localPosition = origin; sp3d.transform.localRotationEuler = origin; sp3d.transform.localScale = origin; */ }) 同...
来源: Laya_社区 发布时间: 20200817
...里面预览,控制台输入Laya.stage.getChildAt(0).getChildByName("A").transform.lookAt(Laya.stage.getChildAt(0).getChildByName("B").transform.position,new Laya.Vector3(0,1,0),false,false) 指向错误 下面两句修正方向 Laya.stage.getChildAt(0).getChildByName("A").transform.rotation....
来源: Laya_社区 发布时间: 20220923
transform的旋转和移动是异步方法吗? 在调用transform.rotate后修改锚点,旋转的锚点也改变了,是不是因为rotate是异步方法?如果是,有没有办法实现旋转之后回调? var cube:MeshSprite3D; // 省略了添加到场景中的代码 // 先移动锚...
来源: Laya_社区 发布时间: 20190427
...接 提交 1 个回复 zszen 赞同来自: 我自己来 box.potOld = box.transform.position;Laya.Tween.to(box.potOld,{ x:1 ,y:2 ,update:new Laya.Handler(box,function(){ this.transform.position = this.potOld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,La...
来源: Laya_社区 发布时间: 20180112
Laya.Transform3D 能否以世界中某个点作为中心进行旋转? 如题,类似于Unity3D中的 Transform.RotateAround ? 如果没有,请问有什么思路可以模拟一下? 2019-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20191107
请教一个transform, lookAt的使用问题 将一个物体 的transform lookAt(摄像机,(0,1,0) ) ,如何在lookAt之后 摄像机随便旋转 保持物体的角度始终是Y轴朝上。朝屏幕上方。现在的情况是摄像机旋转之后,物体也跟着旋转。。 附件 : --> 2019-12...
来源: Laya_社区 发布时间: 20191226