大约有 36 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0025 秒)
...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
...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
...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
...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
... 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
...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
...中的 t 会经过由 P0 至 P1 的 B(t) 所描述的曲线。例如当 t=0.25 时,B(t) 即一条由点 P0 至 P1 路径的四分之一处。就像由 0 至 1 的连续 t,B(t) 描述一条由 P0 至 P1 的直线。 #### **1.2 二次贝塞尔曲线**  (图2)  (图2)  (图2) ![b...
来源: Laya2.0_文档 发布时间: 20210714
...1,拉入自己本身模型,2个模型同个大小。但是laya不是,0.25米单位的模型和1米单位模型和1厘米模型导入后,同样开启单位缩放,骨骼根节点缩放不为1,将模型本体拉入骨骼根节点,模型大小不同。如果将u3d里的模型通过插件...
来源: Laya_社区 发布时间: 20250414