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

大约有 277 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0050 秒)

131. laya.d3.resource.models.Mesh_API3.0 [ 72%]

...| Uint16Array | Uint32Array 网格索引。 getNormals getNormals(normals: Vector3[]): void Defined in laya/d3/resource/models/Mesh.ts:598 拷贝并填充法线数据至数组。 remark 该方法为拷贝操作,比较耗费性能。 Parameters normals: Vector3[] 法线数组。 Returns void getPos...

来源: Laya3.0_api 发布时间: 20231115

132. laya.d3.core.particleshuriken.ShurikenParticleMaterial_API3.0 [ 72%]

...PropertyValue getTexture getTextureByIndex getVector2 getVector2ByIndex getVector3 getVector3ByIndex getVector4 getVector4ByIndex hasDefine hasListener isCreateFromURL off offAll offAllCaller oldparseEndEvent on once removeDefine setBool setBoolByIndex setBuffer setBufferByIndex setColor setColorByI...

来源: Laya3.0_api 发布时间: 20231115

133. 关于2.0.1版本,rayCastAll方法有bug的问题 [ 72%]

...8; i++) { let radis = i * 2 * Math.PI / 8; rays[i] = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(Math.cos(radis), 0, Math.sin(radis))); let hitResult = new Array(); this.mainScene.physicsSimulation.rayCastAll(rays[i], hitResult); console.log(rays[i], hitResult); }我注意到2.0.0的时...

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

134. timer.loop帧率高于物理帧率移动父级导致子物体本地坐标异常 [ 72%]

...ody.overrideGravity = true;             rigidbody.gravity = new Laya.Vector3();             rigidbody.isTrigger = true;             rigidbody.isKinematic = false;             rigidbody.colliderShape = new Laya.CompoundColliderShape();             this.cube.transform.loc...

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

135. 关于3d项目中component的问题 [ 71%]

...代码,请大家指正!(function () { var convertTranslate = new Laya.Vector3(0, 0, 0); function CmpScript() { CmpScript.super(this); this.x = 0; } Laya.class(CmpScript, "CmpScript", Laya.Script) CmpScript.prototype._initialize = function (owner) { var _this = this; CmpScript.__super.prototype._...

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

136. laya.d3.core.render.BaseRender [ 71%]

...获取包围盒,不允许修改其值。 BaseRender  boundingBoxCenter : Vector3[read-only] 获取包围盒中心,不允许修改其值。 BaseRender  boundingSphere : BoundSphere[read-only] 获取包围球,不允许修改其值。 BaseRender  castShadow : Boolean 是否产生阴影。 BaseRen...

来源: laya_api 发布时间: 20170929

137. 场景雾化(JavaScript-3D基础(JS)-LayaAir3D之场景渲染配置) [ 71%]

... scene.enableFog = true; //设置雾化的颜色 scene.fogColor = new Laya.Vector3(0,0,0.6); //设置雾化的起始位置,相对于相机的距离 scene.fogStart = 10; //设置雾化最浓处的距离。 scene.fogRange = 40; ``` 效果显示(图4): ![](img/4.png)(图4)

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

138. 场景雾化(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 71%]

... scene.enableFog = true; //设置雾化的颜色 scene.fogColor = new Laya.Vector3(0,0,0.6); //设置雾化的起始位置,相对于相机的距离 scene.fogStart = 10; //设置雾化最浓处的距离。 scene.fogRange = 40; ``` 效果显示(图4): ![](img/4.png)(图4)

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

139. meshRender修改材质问题 [ 71%]

...se1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 90, 0), false, false); warehouse1.transform.translate(new Laya.Vector3(0,0,0),false); warehouseMeshSprite3D1= warehouse1.getChildAt(0).getChildByName("Mesh1"); var material = warehouseMeshSprite3D1.meshRender.mater...

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

140. 场景雾化(ActionScript-3D基础(AS3)-LayaAir3D之场景渲染配置) [ 70%]

...码 scene.enableFog = true; //设置雾化的颜色 scene.fogColor = new Vector3(0,0,0.6); //设置雾化的起始位置,相对于相机的距离 scene.fogStart = 10; //设置雾化最浓处的距离。 scene.fogRange = 40; ``` 效果显示(图4): ![](img/4.png)(图4)

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