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

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

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

...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

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

...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. timer.loop帧率高于物理帧率移动父级导致子物体本地坐标异常 [ 74%]

...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

134. 关于3d项目中component的问题 [ 74%]

...代码,请大家指正!(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

135. laya.d3.core.render.BaseRender [ 74%]

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

来源: laya_api 发布时间: 20170929

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

... 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

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

... 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

138. meshRender修改材质问题 [ 73%]

...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

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

...码 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

140. 着色器蓝图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

.../3/4 定义一个向量类型,根据不同的分量数量分为Vector2、Vector3、Vector4 图6-4 6.4 Color 定义一个颜色值,通常存在RGBA四种分量的数据 图6-5 6.5 Define 宏定义,用于对宏条件的不同触发结果来执行不同的结果内容,效率高于if-else 图6-6...

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