• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,007 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0068 秒)

201. localRotationEulerY旋转位置错误 [ 69%]

...t.transform.worldMatrix;         mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0));         directionLight.transform.worldMatrix = mat;          //平面         var plane = this.newScene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10...

来源: Laya_社区 发布时间: 20201120

202. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 69%]

...nLight.transform.worldMatrix;         mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0));         directionLight.transform.worldMatrix = mat;         //材质加载         this.mat1 = new Laya.BlinnPhongMaterial;         this.mat2 = new Laya.BlinnPhongMaterial;         this....

来源: Laya_社区 发布时间: 20191009

203. 通过PrimitiveMesh创建简单Mesh(JavaScript-3D基础(JS)-LayaAir3D之模型和网格) [ 69%]

...createSphere(0.25, 20, 20))); sphere.transform.position = new Laya.Vector3(1.0, 0.25, 0.6); //圆柱体 var cylinder = sprite3D.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createCylinder(0.25, 1, 20))); cylinder.transform.position = new Laya.Vector3(0, 0.5, 0.6); //胶囊体 var capsule = sprite3D....

来源: Laya2.0_文档 发布时间: 20210715

204. 通过PrimitiveMesh创建简单Mesh(TypeScript-3D基础(TS)-LayaAir3D之模型和网格) [ 69%]

...createSphere(0.25, 20, 20))); sphere.transform.position = new Laya.Vector3(1.0, 0.25, 0.6); //圆柱体 var cylinder = sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createCylinder(0.25, 1, 20))); cylinder.transform.position = new Laya.Vector3(0, 0.5, 0.6); //胶囊体 var capsule = spri...

来源: Laya2.0_文档 发布时间: 20210714

205. 3D灯光与阴影 · LayaAir3.0文档 · LAYABOX [ 69%]

...addChild(pointLight); //点光源的颜色 pointCom.color = new Laya.Color(1.0, 0.5, 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、DirectionLight Direction Light(平行光)与点光区别较大,它有固定的一...

来源: Laya3.0_文档 发布时间: 20240624

206. 本地双击html如何打开laya项目? [ 68%]

...e); if (file.exists() && !file.isDirectory()) { os.println( " HTTP/1.0 200 OK "); // 返回应答消息,并结束应答 os.println( " Content-Type:" + generatecontentType(fileName)); os.println( " Content-Length: " + file.length()); // 返回内容字节数 os.println(); FileInputStream fis ...

来源: Laya_社区 发布时间: 20160104

207. Particle2D粒子在WebGL模式下位移问题 [ 68%]

...同来自: 等2.0引擎用吧,粒子的问题 。 2.0 都统一解决,1.0版本只能尽量避免出现问题的用法。 2018-07-12 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 朱达 相关问题 laya针对页游耗用内存大...

来源: Laya_社区 发布时间: 20180626

208. laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内存不断增加! [ 68%]

... 分享 微博 QZONE 微信 *%〈~〉 赞同来自: 您好,我在laya2.1.0版本也遇到了这个问题,不知道是在那个版本修复了该问题呢? 2019-09-17 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 王朝阳 相关...

来源: Laya_社区 发布时间: 20190318

209. 高级应用-实时阴影 [ 68%]

...ya.Vector3(0.7, 0.6, 0.6); directionLight.direction = new Laya.Vector3(0, -1.0, -1.0); //灯光开启阴影 directionLight.shadow = true; //可见阴影距离 directionLight.shadowDistance = 3; //生成阴影贴图尺寸 directionLight.shadowResolution = 2048; //生成阴影贴图数量 directionLig...

来源: Laya_示例 发布时间: 20240930

210. PBRStandardMaterial材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 68%]

# PBRStandardMaterial材质详解 ###### *version :2.1.0beta Update:2019-5-14* 基于物理普通反射材质,硬质表面(也就是建筑材质)而设计的,一般用于做粗糙质感的材质。 ##### 主要属性和方法 > 属性 `albedoColor:Vector4` 漫反射颜色。 `albedoTexture:B...

来源: Laya2.0_文档 发布时间: 20210715