大约有 149 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0057 秒)
...liderShape = new Laya.CompoundColliderShape(); this.cube.transform.localPosition = new Laya.Vector3(); } let pos = this.cubeP.transform.position; pos.z += dis; this.cubeP.transform.position = pos; if(this.cube.transform.lo...
来源: Laya_社区 发布时间: 20200223
...RO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.transform.translate(norDir,false); // let position = Laya.Vector3.ZERO; // Laya.Vector3.add(this.sprite.transform.position,norDir,position) // this.sprite.transform.position = position; this.sprite.transform.localPositionX +=...
来源: Laya_社区 发布时间: 20191026
...链接 提交 1 个回复 Laya_XS 赞同来自: 你可以修改3d物体的transform的rotate跟localScale来实现物体的缩放旋转。具体不明白你是要旋转实现哪些,你可以参考下3d的transform的api看下。3d的事件触发需要用射线检测来弄,不是2d的鼠标事件...
来源: Laya_社区 发布时间: 20170222
...8); var cylinder3D:MeshSprite3D=new MeshSprite3D(cylinderMesh); cylinder3D.transform.translate(new Vector3(3,0,0),true); cylinder3D.transform.localScale = new Vector3(2,2,2); cylinder3D.transform.localRotationEuler = new Vector3(90,90,90); role.getChildAt(0).addChild(cylinder3D); this.ani.linkSprite...
来源: Laya_社区 发布时间: 20170904
...ra = scene.addChild( new Laya.Camera(0, 0.1, 100) ) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.Sprite3D.load( "res/test_mesh2.lh", Laya.Handler.create(this, function (sprite: Laya.Sprite3D): void { va...
来源: Laya_社区 发布时间: 20220721
...ra = this.scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 6, 9.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamer...
来源: Laya_社区 发布时间: 20191009
...尾目前一共提供两种朝向,一是朝向相机,二是朝向朝向transform组件的前向量。你用的是朝向相机的,所以移动过程中旋转,出现 扭曲是正常的。你可以看看unity中的现象。 2019-12-18 0 2 分享 微博 QZONE 微信 NilZ 赞同来自: 我给你...
来源: Laya_社区 发布时间: 20191217
...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
...法。 unity中可以通过设置forward朝向来改变角度, laya中的transform中执行的所有旋转都是无效的? 2019-05-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 bpmf_d 赞同来自: 提供一...
来源: Laya_社区 发布时间: 20190508
...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