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

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

131. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 45%]

...到整数的网格索引 */ private function getGridIndex(x:int, z:int,out:Vector2):void{ var minX:int = terrainSprite.minX; var minZ:int = terrainSprite.minZ; var cellX:Number = terrainSprite.width / aStarMap.width; var cellZ:Number = terrainSprite.depth / aStarMap.height; var gridX:int = Math.floo...

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

132. 3D场景-地形场景 [ 45%]

...ial.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.Vector2; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.TextureCube; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import laya.events.Event; import laya.utils.Stat; impor...

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

133. 用raycast选取实体,hitresult始终是false [ 44%]

...就那么点:  //**** 监测鼠标点击碰撞 */ var point = new Laya.Vector2(); var ray: Laya.Ray = new Laya.Ray(new Laya.Vector3(2, 2, 2), new Laya.Vector3(3, 3, 3)); var outHitResult: Laya.HitResult = new Laya.HitResult(); point.x = Laya.MouseManager.instance.mouseX; point.y = Laya.MouseManag...

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

134. [LayaAirIDE3]时间轴动画调了材质引用类型的属性,调用play()接口切状态的时候调用_revertDefaultKeyframeNodes报材质属性空 [ 44%]

...      break;                         case KeyFrameValueType.Vector2:                             property = property.getVector2(node.getPropertyByIndex(i)).clone();                             break;                         case KeyFrameValueTyp...

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

135. Cannot read property 'rayCast' of undefined [ 43%]

...per(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, config3D); Laya.stage.scaleMode = Laya.Stage....

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

136. 射线检测报错,outHitInfo.sprite3D=null; [ 43%]

...); }  private onMouseDown():void{ this.camera.viewportPointToRay(new Laya.Vector2(Laya.MouseManager.instance.mouseX,Laya.MouseManager.instance.mouseY),this.ray); Laya.Physics.rayCast(this.ray,this.hit); console.log("当前射线碰撞的信息是:" + this.hit.sprite3D.name); //摄像机位置 var p...

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

137. Cannot read property 'toDefault' of undefined报错是什么原因 [ 42%]

...w Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); // this.phasorSpriter3D = new Laya.PhasorSpriter3D(); } MousePickingScene.prototype.lateRender = function (state) { MousePickingScene.__super.prototype.lateRender.call(stat...

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

138. laya.d3.core.material.GlitterMaterial [ 42%]

..._getTexture(shaderIndex:int):BaseTexture 获取纹理。 BaseMaterial _getVector2(shaderIndex:int):* 获取二维向量。 BaseMaterial _removeDisablePublicShaderDefine(value:int):void 移除禁用宏定义。 BaseMaterial _removeShaderDefine(value:int):void 移除Shader宏定义。 BaseMaterial...

来源: laya_api 发布时间: 20170929

139. laya.d3.core.material.ParticleMaterial [ 42%]

..._getTexture(shaderIndex:int):BaseTexture 获取纹理。 BaseMaterial _getVector2(shaderIndex:int):* 获取二维向量。 BaseMaterial _removeDisablePublicShaderDefine(value:int):void 移除禁用宏定义。 BaseMaterial _setBool(shaderIndex:int, b:Boolean):void 设置布尔。 BaseMaterial _s...

来源: laya_api 发布时间: 20170603

140. laya.d3.core.particleShuriKen.ShurikenParticleMaterial [ 41%]

..._getTexture(shaderIndex:int):BaseTexture 获取纹理。 BaseMaterial _getVector2(shaderIndex:int):* 获取二维向量。 BaseMaterial _removeDisablePublicShaderDefine(value:int):void 移除禁用宏定义。 BaseMaterial _removeShaderDefine(value:int):void 移除Shader宏定义。 BaseMaterial...

来源: laya_api 发布时间: 20170929