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

大约有 36 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0025 秒)

21. graphics 问题 [ 55%]

...loadImage("../../res/apes/monkey2.png"); let m = new Laya.Matrix() m.skew(-0.25, 0) // ape.graphics.save() ape.graphics.transform(m) // ape.graphics.restore() let sp=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#ffffff") Laya.stage.addChild(sp); sp.x=300; } })();请在引擎示例里面运行这...

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

22. 在线急等,发现你们这个编译器一个bug,不能实现负负得正 [ 55%]

...this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.stageHeight ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; } if (this.ball.x + this.vx >= this.stageWidth ||this.ball.x + this.vx <= 0) { this.vx...

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

23. 在线急等,发现你们这个编译器一个bug,不能实现负负得正,昨天明明解决了,过了一会又不行了,怎么回事 [ 53%]

...this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.img1 ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; console.log("33333"); } if (this.ball.x + this.vx > this.stageWidth ||this.ball.x + this.vx <...

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

24. 3d场景下面有张2d的图片,当鼠标焦点不在该网页时,2d图片为啥会闪动 [ 52%]

...ld(camera);             camera.transform.translate(new Vector3(0, 0.25, 0.6));             camera.transform.rotate(new Vector3(-30,0,0),true,false);             var map:Sprite3D = Sprite3D.load("3d/zhuoZi/ZhuoZi.lh");             map.transform.localScale = new Vec...

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

25. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 50%]

... 1, 1)); scene.addChild(box); box.transform.position = new Laya.Vector3(0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false);  const rigidBody = box.addComponent(Laya.CannonRigidbody3D) as Laya.CannonRigidbody3D;  const shape = new Laya.CannonBoxColliderShape(1, 1, 1); sha...

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

26. 2D方向光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...ty = 0.2; } else if (progress < 0.375) { const t = (progress - 0.125) / 0.25; intensity = 0.2 + t * 0.8; } else if (progress < 0.708) { intensity = 1.0; } else if (progress < 0.833) { const t = (progress - 0.708) / 0.125; intensity = 1.0 - t * 0.8; } else { intensity = 0.2; } this.lightComp...

来源: Laya3.0_文档 发布时间: 20251010

27. 绘制曲线(JavaScript-LayaAir基础篇(JS)-矢量图) [ 46%]

...中的 t 会经过由 P0 至 P1 的 B(t) 所描述的曲线。例如当 t=0.25 时,B(t) 即一条由点 P0 至 P1 路径的四分之一处。就像由 0 至 1 的连续 t,B(t) 描述一条由 P0 至 P1 的直线。 #### **1.2 二次贝塞尔曲线** ​ ![2.gif](gif/2.gif) ​ (图2) ​ ![b...

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

28. 绘制曲线(TypeScript-LayaAir基础篇(TS)-矢量图) [ 46%]

...中的 t 会经过由 P0 至 P1 的 B(t) 所描述的曲线。例如当 t=0.25 时,B(t) 即一条由点 P0 至 P1 路径的四分之一处。就像由 0 至 1 的连续 t,B(t) 描述一条由 P0 至 P1 的直线。 #### **1.2 二次贝塞尔曲线** ​ ![2.gif](gif/2.gif) ​ (图2) ​ ![b...

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

29. 绘制曲线(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 46%]

...中的 t 会经过由 P0 至 P1 的 B(t) 所描述的曲线。例如当 t=0.25 时,B(t) 即一条由点 P0 至 P1 路径的四分之一处。就像由 0 至 1 的连续 t,B(t) 描述一条由 P0 至 P1 的直线。 #### **1.2 二次贝塞尔曲线** ​ ![2.gif](gif/2.gif) ​ (图2) ​ ![b...

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

30. [LayaAirIDE3]3.3 模型导入异常 [ 45%]

...1,拉入自己本身模型,2个模型同个大小。但是laya不是,0.25米单位的模型和1米单位模型和1厘米模型导入后,同样开启单位缩放,骨骼根节点缩放不为1,将模型本体拉入骨骼根节点,模型大小不同。如果将u3d里的模型通过插件...

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