大约有 155 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0036 秒)
...ate(null, function(sp) { //let obj = sp; let obj = scene.addChild(sp); obj.transform.scale = new Laya.Vector3(4, 4, 4); obj.transform.rotate(new Laya.Vector3(0, 0.9, 0)); obj.addComponent(BoxControlScript); //旋转方向与角度设置 //var vect = new Laya.Vector3(0,1,0); //每10毫秒旋转一次...
来源: Laya_社区 发布时间: 20200611
...oolsdaochu/denglongyu.jpg"); fish.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); fish.transform.position = new Laya.Vector3(0,0.5,0); // fish.transform.position = new Laya.Vector3(0.4,0.5,-0.35); fish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0...
来源: Laya_社区 发布时间: 20171206
...is.camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100)); this.camera.transform.translate(new Laya.Vector3(0, 6, 13)); this.camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); this.camera.addComponent(CameraMoveScript); //加载猴子 this.layaMonkey = this.scene.addChild(Laya.Sp...
来源: Laya_示例 发布时间: 20260106
...用Position吗 laya Tween 不能用Position吗 Laya.Tween.to(this.camera.transform.position, { x: position.x, y: position.y, z: position.z }, 2000); 2021-02-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 小小...
来源: Laya_社区 发布时间: 20210202
...Sprite3D(tempmodels); scene.addChild(this.meshSprite3D); this.meshSprite3D.transform.position.x = 0; this.meshSprite3D.transform.position.y = 0; this.meshSprite3D.transform.position.z = 10; 加载并显示从Unity导出的模型,但是却改变不了实例化出来对象的Position。方法...
来源: Laya_社区 发布时间: 20180926
...ildByName( "Monster1" ) as Laya.Sprite3D; scene.addChild(Monster); Monster.transform.translate( new Laya.Vector3(monster_position_x, 0, monster_position_z) ); this.monster_character = Monster; // this.master_turn(); //添加自定义模型 var box: Laya.MeshSprite3D = this.scene.addChild( new Laya.M...
来源: Laya_社区 发布时间: 20200917
...相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); di...
来源: Laya_社区 发布时间: 20190314
从unity导出的粒子特效无法旋转 如题 transform的旋转属性不管是赋值还是使用rotate方法都无法生效 附件是粒子资源 附件 : --> 1.zip 2022-05-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20220518
...emp = ani._avatarNodes[i]; break; } } 然后通过loop来设置 effectTemp.transform.worldMatrix = animationNodeTemp.transform()._getWorldMatrix(); 这样好像没有效果 zfree • 2017-08-21 16:41 @138*****175: 用这个animator._cacheNodesOwners 183*****755 • 2017-08-21 16:47 @zfree:动画是...
来源: Laya_社区 发布时间: 20170821
如何限制旋转角度 我用sphere.transform.rotate(vecty,false,false); 旋转这个球体的X轴角度,假定是个地球仪,怎么限制转到北极或南极就不让它转了,如果转到北极或南极仍然能继续转的话,地球就成倒置的,不符合实际需求,怎么处...
来源: Laya_社区 发布时间: 20180518