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

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

41. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 65%]

...ish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() funct...

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

42. 绘制矩形与圆角矩形(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 64%]

...  private var sp:Sprite;                    public function Sprite_DrawShapes()         {             Laya.init(500, 300);             drawSomething();         }            private function drawSomething():void       ...

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

43. 关于intersects碰撞的疑问 [ 64%]

...r中也找到了intersects方法,不过用法好像不太一样,public function intersects(rect:Rectangle):Boolean   问题一:是不是也是这样去用?if(rectangleA.intersects(rectangleB)) 问题二:如果是这样去用,那么是不是每一个image对象都要创建一个相应...

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

44. laya.maths.Rectangle_API3.0 [ 64%]

...ss with type parameter Constructor Property Method Object literal Variable Function Type alias Static property Static method Enumeration Interface

来源: Laya3.0_api 发布时间: 20231115

45. 发射射线检测不到,物体有包围盒 [ 63%]

...3D.load("res/LayaScene_game/Conventional/game.ls",Laya.Handler.create(null,function(scene3d){             // HelperApp.a = scene3d;             //加载完成获取到了Scene3d             scene3d.name = 'good';             self.owner.addChild(scene3d);              v...

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

46. 【解决】富文本html下划线换行bug [ 63%]

...   修改2.0版本 laya.html.js库里的代码__proto.renderSelfToGraphic=function(graphic,gX,gY,recList){ var cssStyle=this.style; var words=this._getWords(); var i=0,len=0; if (words){ len=words.length; var a; if (cssStyle){ var font=cssStyle.font; var color=cssStyle.color; if (cssStyle.stroke){ ...

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

47. 【初学者】导入模型进行旋转结果出现问题 [ 62%]

...new Laya.Vector3(1,0,0); //每10毫秒旋转一次 Laya.timer.loop(10,null,function(){ box.transform.rotate(vect,true,false); }); 以上是代码 出现的问题是有一个物体 然后另外一个物体在旋转 2018-08-08 添加评论 已悬赏2元 --> 分享 微博 QZONE 微信 没有找到相...

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

48. 2.13版本 2D物理碰撞OnTriggerEnter 第三个参数 contact.getHitInfo() 报错 [ 62%]

...x2d 是undefined 请问这里的 this 指向是 ??   contact.getHitInfo = function () {                 var manifold = new this.box2d.b2WorldManifold();                 this.GetWorldManifold(manifold);                 var p = manifold.points[0];                 p.x *...

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

49. laya.d3.core.scene.BaseScene [ 62%]

...新前处理,可重写此函数。 BaseScene clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node contains(node:Node):Boolean 当前容器是否包含 node 节点。 Node customRender(context:RenderContext, x:Number, y:Number):void 自定义更新...

来源: laya_api 发布时间: 20170422

50. laya.display.Sprite.graphics对象的旋转问题 [ 62%]

...的中心点 2、然后针对你的显示对象进行rotate旋转 private function createTexts():void { var sp:Sprite=new Sprite(); Laya.stage.addChild(sp); sp.graphics.drawLine(0,0,200,200,'#FF00000'); sp.pivot(0,0); Laya.timer.frameLoop(1,this,onTimer,[sp]); } private function onTimer(sp:Sprite):v...

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