大约有 68 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0026 秒)
...xtends Laya.Script3D { private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor(){ super(); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { (this.owner as Laya.Sprite3D).transform.rotate(this.rotation, false); } onLateUpdate() { console.log...
来源: Laya2.0_文档 发布时间: 20210715
...后导出至laya。 使用时将模型生成出来后把 local scale 调成0.01。 这时候如果要放大到两倍的效果,就是把 local scale 调整为0.02即可,这时meshcollider的缩放仍然是正确的。 louis • 2019-07-12 13:44 @容垣:谢谢,我最后的办法是自己写了...
来源: Laya_社区 发布时间: 20181121
...毕,此方法只执行一次 onAwake(): void { this.progressBar.value = 0.01; //初始进度值 this.loadText.text = "资源加载中……"; // 测试加载效果 Laya.timer.loop(100, this, this.changeProgress); } //这里仅模拟加载演示效果 changeProgress(): void { this.progressBar.value...
来源: Laya3.0_文档 发布时间: 20241014
...移动的距离进行缩放 _camera.transform.translate(new Vector3(0, 0, -0.01 * (distance2 - distance))); distance = distance2; } } else if (0 === touchCount){ _text.text = "触控点归零"; first = true; lastPosition.x = 0; lastPosition.y = 0; first = true; isTwoTouch = false; } } ``` ![](img/4....
来源: Laya2.0_文档 发布时间: 20210715
...e); if(!scene) return; var camera = this.scene.addChild(new Laya.Camera(0, 0.01, 1000)); camera.transform.translate(new Laya.Vector3(0, consts.CAMERA_HEI, 0)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 15; this.ma...
来源: Laya_社区 发布时间: 20180126
...离进行缩放 this._camera.transform.translate(new Laya.Vector3(0, 0, -0.01 * (this.distance2 - this.distance))); this.distance = this.distance2; } } else if (0 === touchCount){ this._text.text = "触控点归零"; this.first = true; this.lastPosition.x = 0; this.lastPosition.y = 0; this.first = t...
来源: Laya2.0_文档 发布时间: 20210715
...离进行缩放 this._camera.transform.translate(new Laya.Vector3(0, 0, -0.01 * (this.distance2 - this.distance))); this.distance = this.distance2; } } else if (0 === touchCount){ this._text.text = "触控点归零"; this.first = true; this.lastPosition.x = 0; this.lastPosition.y = 0; this.first = t...
来源: Laya2.0_文档 发布时间: 20210715
... cube: Laya.Sprite3D; private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图1-4所示: (动图1-4) 1.3 3D节点的进阶使用 @property( { type :Laya.Sprite3D ...
来源: Laya3.0_文档 发布时间: 20241014
...0, 0); //(500, 500, 0)改为(0,0,0) var rotation = new Laya.Vector3(0, 0.01, 0); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { layaMonkey.transform.localScale = new Laya.Vector3(300, 300, 300); Laya.Utils3D.convert3DCoordTo2DScreenCoord(translate, translate); layaMonkey.transf...
来源: Laya_社区 发布时间: 20170807
...s Laya.Scene; var camera: Laya.Camera = (scene.addChild(new Laya.Camera(0, 0.01, 1000))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 1.5, 3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight: Laya.DirectionLight = scene.addChild(new Laya.Direc...
来源: Laya_示例 发布时间: 20241124