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

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

101. UI场景加载,不稳定 [ 71%]

...f(LoadControl.isLaodSuccess){ console.log("加载成功了"); EventManager.Instance().BroadcastLisenter(GameEnum.load_success); }else{ console.log("开始加载进度了"); ResourceManager.Instance().loadSuccess(); // 这里改成不加载资源就能加载成功页面, 改成loadRuning()就报错...

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

102. Laya3D鼠标检测,3d对象被添加到场景,然后又被移除,还能通过Ray进行碰撞检测么? [ 70%]

...it> = new Vector.<RaycastHit>(); point.elements[0] = MouseManager.instance.mouseX; point.elements[1] = MouseManager.instance.mouseY; ray.direction.x = 0; ray.direction.y = 0; ray.direction.z = 0; ray.origin.x = 0; ray.origin.y = 0; ray.origin.z = 0; handCamera.viewportPointToRay(point, ray)...

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

103. 物理射线检测(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 70%]

...行射线检测。效果如(图5) ```typescript point.x = MouseManager.instance.mouseX; point.y = MouseManager.instance.mouseY; //产生射线 _camera.viewportPointToRay(point,_ray); //拿到射线碰撞的物体 _scene.physicsSimulation.rayCast(_ray,outs); //如果碰撞到物体 if (outs.lengt...

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

104. 调用创建微信授权按钮时,授权按钮有时候显示有时候不显示 [ 70%]

...      button.hide()                     MenuView.instance.createMenuBtn();                     SocketManager.instance.sendlogin();                     //LayaSample.gameLoad.toStartGame()                  }      ...

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

105. 物理射线检测(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 70%]

...测。效果如(图5) ```typescript this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,this._ray); //拿到射线碰撞的物体 this.scene.physicsSimulation.rayCast(this._ray,this.outs); //...

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

106. 物理射线检测(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 70%]

...线检测。效果如(图5) ```typescript this.point.x = MouseManager.instance.mouseX; this.point.y = MouseManager.instance.mouseY; //产生射线 this._camera.viewportPointToRay(this.point,this._ray); //拿到射线碰撞的物体 this._scene.physicsSimulation.rayCast(this._ray,this.outs); //...

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

107. laya.events.MouseManager [ 70%]

...:Boolean = false):void MouseManagerPublic Constants ConstantDefined By  instance : MouseManager[static] MouseManager 单例引用。 MouseManagerProperty Detail_eventpropertypublic var _event:EventdisableMouseEventproperty public var disableMouseEvent:Boolean = false 是否禁用除 stage 以外...

来源: Laya2.0_api 发布时间: 20190513

108. this.scene.physicsSimulation.rayCastAll 报错 [ 70%]

...scene.physicsSimulation.rayCastAll 报错 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,this.ray);   /// Laya.PhysicsSimulation.rayCast(this.ray, this.outHitResult, 30, 0) //拿到射线...

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

109. PixelLineSprite3D 绘制线段问题 [ 70%]

...0, 0)) let pointVec2 = new Laya.Vector2( ) pointVec2.x = Laya.MouseManager.instance.mouseX; pointVec2.y = Laya.MouseManager.instance.mouseY; this.sceneCamera.viewportPointToRay(pointVec2, this.originRay) // 摄像机发出射线检测的碰撞体 let cameraHitResult = new Laya.HitResult( ) this.main...

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

110. [LayaAir3]关于laya更新到3.1出现射线检测不到的情况 [ 70%]

...ay = new Laya.Ray(startPoi,dir);//创建射线         if(SceneManager.Instance.nowScene!=null)         {                 if(SceneManager.Instance.nowScene.physicsSimulation.rayCast(ray,this.enemyHit))                 {                     console.log("enemyHit->...

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