大约有 282 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0034 秒)
Laya_社区(193) Laya2.0_文档(46) Laya3.0_api(16) Laya3.0_文档(8) Laya2.0_api(6) Laya_示例(6) laya_api(4) Laya2.0_示例(3)
...f(LoadControl.isLaodSuccess){ console.log("加载成功了"); EventManager.Instance().BroadcastLisenter(GameEnum.load_success); }else{ console.log("开始加载进度了"); ResourceManager.Instance().loadSuccess(); // 这里改成不加载资源就能加载成功页面, 改成loadRuning()就报错...
来源: Laya_社区 发布时间: 20181213
...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
...行射线检测。效果如(图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
... button.hide() MenuView.instance.createMenuBtn(); SocketManager.instance.sendlogin(); //LayaSample.gameLoad.toStartGame() } ...
来源: Laya_社区 发布时间: 20190109
...测。效果如(图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
...线检测。效果如(图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
...: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
...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
...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
...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