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

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

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

...   let point = {          x: collider.owner.x - collider.width * 0.5 * local.x,         y: collider.owner.y - collider.height * 0.5 * local.y     } 2021-01-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 176*****556...

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

152. TimeLine调用destroy报错&执行完成后回到起点 [ 70%]

...():void { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX:0.5, scaleY:0.5},2000,null,0) .addLabel("turnDown",0).to(target,{x:450, y:300, scaleX:0.2, scaleY:1, alpha:1},2000,null,0) .addLabel("turnLeft",0).to(target,{x:100, y:300, scaleX:1, scaleY:0.2, alpha:0.1},2000,null,0) // .add...

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

153. 用iframe内嵌网页及适配 [ 70%]

...100000 var str = styleStr.format((laya.utils.Browser.width - frameWidth) * 0.5, (laya.utils.Browser.height - frameHeight) * 0.5); this.iframe.setAttribute('width', frameWidth); this.iframe.setAttribute('height', frameHeight); this.iframe.setAttribute('style', str); 2017-04-15 添加评论 免费帖 ...

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

154. 关于Laya.Tween 在3d上的应用与缓动的优化 [ 70%]

...Laya.Tween.to(sp1,{x:100,y:200},500); Laya.Tween.to(sp2,{x:300,y:400,alpha:0.5},500); 与下面的效果是一样的 let origin: any = {x1:sp1.x,y1:sp1.y,x2:sp2.x,y2:sp2.y,alpha2:sp2.alpha}; let target: any = {x1:100,y1:200,x2:300,y2:400,alpha2:0.5}; Laya.Tween.to(origin,target,500).update ...

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

155. 后期处理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...设置颜色、亮度、对比度、饱和度、色调 colorEffect2D.color(0.5, 0.5, 0.5, 1); colorEffect2D.adjustBrightness(30); colorEffect2D.adjustContrast(8); colorEffect2D.adjustSaturation(30); colorEffect2D.adjustHue(-15); } } 三、 变灰效果 变灰效果是变色效果的一种特殊用...

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

156. 3D灯光与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...ild(pointLight); //点光源的颜色 pointCom.color = new Laya.Color(1.0, 0.5, 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、DirectionLight Direction Light(平行光)与点光区别较大,它有固定的一个方...

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

157. MeshSprite3D在加了physicsCollider和Rigidbody3D后,调用destroy会报错 [ 69%]

...代码如下: this.capsule = new Laya.MeshSprite3D(new Laya.CapsuleMesh(0.5, 1)); var capsuleCollider:Laya.PhysicsCollider = this.capsule.addComponent(Laya.PhysicsCollider);//网格触发器 var capsuleShape:Laya.CapsuleColliderShape = new Laya.CapsuleColliderShape(0.5,1); capsuleCollider.collider...

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

158. WebGl下 graphics画出东西后 移动sprite 不起效果 [ 69%]

...le: "#00ffff"         });         sp.x = 800;         sp.scale(0.5,0.5);     } })(); 2017-07-12 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 这个问题已经确认有问题,正在修复,谢谢反馈! 2017-07-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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

159. 多种碰撞器形状(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 69%]

... raidius:int = Math.random() * 0.2 + 0.2; var height:int = Math.random() * 0.5 + 0.8; //创建胶囊MeshSprite3D var capsule:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createCapsule(raidius, height))) as MeshSprite3D; //创建刚体碰撞器 var rigidBody:Rigidbody3D = capsule.addC...

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

160. 获取相机renderTexture 作为阴影 的UV [ 69%]

...       let o:Matrix4x4 = new Matrix4x4(             0.50000 ,0.00000,0.00000,0.50000,             0.00000,0.50000,0.00000,0.50000,             0.00000 ,0.00000,0.50000,0.50000,             0.00000 ,0.00000,0.00000,1.00000         ...

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