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

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

21. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 77%]

... function getScreenPositionByTilePos(tileX:Number, tileY:Number, screenPos:Point = null):void {             if (screenPos) {                 switch (_map.orientation) {                 case TiledMap.ORIENTATION_ISOMETRIC:                      screenPo...

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

22. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 76%]

...ePanel != null) InsManager.GetInstance()._SceneManager.gamePanel.target_point.skin = PathData.game_path + 'zd2.png'     }      /** 移除在物体上边的描边 */     public RemoveCommandBuffer_Outline(): void{         if(this.renders.length == 0 || !this.isUseO...

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

23. 摄像机不在原点的时候3D空间转2D空间会失效? [ 75%]

...间转2D空间”实现了一下3D坐标转2D坐标,过程如下: this.point.elements[0] = Laya.stage.mouseX; this.point.elements[1] = Laya.stage.mouseY; this.camera.viewportPointToRay(this.point, this.ray); Laya.Physics.rayCast(this.ray, this._outHitInfo) 然后: this.camera.viewport.project(...

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

24. this.scene.physicsSimulation.rayCastAll 报错 [ 73%]

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

25. 两个物体发生碰撞的时候,如何让他检测碰撞点的位置 [ 73%]

...fixtureB.collider;     let local = c.m_manifold.localNormal;     let point = {          x: collider.owner.x - collider.radius * local.x,         y: collider.owner.y - collider.radius * local.y     }     console.log(point); }   其中b是CircleCollider,如果b是BoxCollid...

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

26. webGL模式下 graphic画线涂鸦,一直不停画会出现线条异常 [ 71%]

... 2017-11-22 0 0 分享 微博 QZONE 微信 dnvqqk 赞同来自: pos0:Laya.Point=new Laya.Point(); pos1:Laya.Point=new Laya.Point(); __mouseDown(e:Event){ this.pos0.x=this.bmp.mouseX; this.pos0.y=this.bmp.mouseY; this.pos1.x=this.bmp.mouseX this.pos1.y=this.bmp.mouseY; this.bmp.on(Laya.Event.MOUSE_MO...

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

27. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 71%]

...魔鬼, 用于确定瞄准点和整体的中心点 */ private _pivot_demon:Point = <Point>{ x: 50, y: 50 };     /** 特指血条+魔鬼的大小, 用于计算飞行物整体大小 */ private _top_area:Area = <Area>{ w: -1, h: -1 };  /** 血条 */ private _blood_chart: Laya.ProgressBar...

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

28. Laya下怎么实现复制 [ 68%]

...gt;         代码中使用   var pt=this.lbtn.localToGlobal(new Laya.Point(this.lbtn.x,this.lbtn.y)); pt.x -=this.lbtn.width /2; pt.y -=120; var gd=GameData.userData; this.yqm.text=gd.invCode; this.dt.text="邀请次数 "+gd.invFriends+"/99" var iframe = Browser.document.createElement("iframe"...

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

29. TiledMap.getLayerObject [ 67%]

...es/TileMap/Test.json",viewRect,Laya.Handler.create(this,onCreateMap)); var point =0; function onCreateMap(){ this.role = tMap.getLayerObject("role","player"); console.log(this.role.x,this.role.y); }       附件 : --> 2017-11-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

30. 求问sprite放大后,graphics绘制的图像位置偏移 [ 66%]

...或原位置,应该用什么缓动模式 drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 富文本下划...

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