大约有 329 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0036 秒)
Laya_社区(228) Laya_示例(42) Laya2.0_文档(38) Laya3.0_文档(14) Laya3.0_api(2) Laya2.0_api(2) Laya2.0_示例(2) laya_api(1)
... "fieldOfView":29, "nearPlane":0.1, "farPlane":100 }, "customProps":{ "layer":0, "translate":[ ...
来源: Laya_社区 发布时间: 20180122
... var camera:Camera = (scene.addChild(new Camera( 0, 0.1, 100))) as Camera; camera.transform.translate(new Vector3(0, 3, 3)); camera.transform.rotate(new Vector3( -30, 0, 0), true, false); ...
来源: Laya_社区 发布时间: 20180116
...cene()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 5, 0)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya....
来源: Laya_社区 发布时间: 20180717
...yBoardManager.hasKeyDown(Keyboard.W)) { this.spRole.y -= 1; // newPos.y += 0.1; this.rotateRole(this.rotationW); //转换2D屏幕坐标系统到3D正交投影下的坐标系统 this._camera.convertScreenCoordToOrthographicCoord(new Vector3(this.spRole.x, this.spRole.y, 0), newPos); this.sp3Role.tran...
来源: Laya_社区 发布时间: 20220622
...s Scene3D; //加载相机 var camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight:DirectionLight = scene.addChild(new DirectionLight...
来源: Laya2.0_文档 发布时间: 20210714
...作的时候,第三个怪物在待机却抽搐了一下 引擎版本2.0.1beta 没有锁帧 克隆方式: Laya.Sprite3D.instantiate(sprite,parent,isHoldWorldPos,pos); 播放方式: this.animator.speed = speedRate; // animState._resetPlayState(0);//animState._elapsedTime this.animator.cros...
来源: Laya_社区 发布时间: 20190905
... 个回复 layabox小高 赞同来自: 惯性阻尼无效是因为传递的0.1太小。 参数是六个,按代码提示即可。注释有点问题。 2023-06-25 0 0 分享 微博 QZONE 微信 layabox小高 赞同来自: 您好,少写了一个参数如下图。 2023-05-15 0 2 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20230515
...(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.ambientColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Laya.Vector3(0.6, 0.6, 0.6); direc...
来源: Laya_社区 发布时间: 20180108
...a.Scene3D(); Laya.stage.addChild(scene3d); var camera = new Laya.Camera(0, 0.1, 1000); scene3d.addChild(camera); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), false, false); camera.transform.translate(new Laya.Vector3(1000, 0, 0)); camera.orthographic = true; //正交投影垂直矩阵尺寸 ...
来源: Laya_社区 发布时间: 20191206
...adow. var sphereSprite = this.addPBRSphere(Laya.PrimitiveMesh.createSphere(0.1), new Laya.Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; sphereSprite.meshRenderer.receiveShadow = true; ``` 然后来看下效果。 ![](img/1.png)(图1)
来源: Laya2.0_文档 发布时间: 20210715