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

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

151. [LayaAir3]在3.1.x版本 linearVelocity 不能设置初始速度 [ 91%]

[LayaAir3]在3.1.x版本 linearVelocity 不能设置初始速度 在3.1.0 和 3.1.1版本,设置linearVelocity失效,无法设置初始速度。   相同工程,使用旧版本 3.0.11仍可以正常设置linearVelocity。 附件 : --> 2024-03-20 添加评论 免费帖 --> 分享 微博 QZONE ...

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

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

...以对应成3d对象中的vector3         let origin: any = {x:1,y:2,z:3};         let target: any = {x:5,y:8,z:8};         Laya.Tween.to(origin,target,500).update = new Laya.Handler(null,()=>{             console.log(origin);            ...

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

153. 性能测试-虫子(慎入) [ 91%]

...项目开发更高效。let texturePath = "res/tinyMaggot.png", padding = 100, maggotAmount = 5000, tick = 0, maggots = [], wrapBounds, maggotTexture; class PerformanceTest_Maggots { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Lay...

来源: Laya2.0_示例 发布时间: 20240930

154. tween有这个一个bug [ 91%]

...400,Laya.Tween.cubicOut,0) .addLabel("ZoomOut",0).to(share.btShare,{scaleX:1.0, scaleY:1.0},400,Laya.Tween.cubicOut,0); timeLine.play(0,true); 然后循环创建依次执行ui的延迟动画 Laya.Tween.to(point,{x:point.x,y:point.y,alpha:1,update:Laya.Handler.create(point,function(){ this.visible = ...

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

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

...ords(words,gX,gY,font,color); } if (this.href){ var lastIndex=words.length-1; var lastWords=words[lastIndex]; var lineY=lastWords.y+lastWords.height; if(cssStyle.textDecoration!="none"){ if(words[0].y != words[words.length-1].y){ let index = 0; let slsIndex;//secondLineStartIndex while(true){ if(wor...

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

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

...0 || shapeRotation.y !== 0 || shapeRotation.z !== 0 || shapeRotation.w !== 1) { var physicRotation = CannonPhysicsComponent._tempQuaternion0; CannonPhysicsComponent.physicQuaternionMultiply(rotation.x, rotation.y, rotation.z, rotation.w, shapeRotation, physicRotation); btRotation.set(physicRotation....

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

157. 缓动-简单的Tween [ 90%]

...minalX = 200; let characterA = this.createCharacter("res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; let characterB = this.createCharacter("res/cartoonCharacters/2.png"); characterB.pivot(34, 50); characterB.y = 250; Laya.stage.graphics.drawLine(terminalX, 0, terminalX...

来源: Laya2.0_示例 发布时间: 20240930

158. 分享:LayaAir实现曲线运动 [ 90%]

分享:LayaAir实现曲线运动 2016-04-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 详细代码如下,具体demo已上传附件 package { import laya.display.Sprite; public c...

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

159. 请问LAYA1.x版本做3D项目,推荐使用场景同屏面数是多少? [ 90%]

请问LAYA1.x版本做3D项目,推荐使用场景同屏面数是多少? 2018-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 10万以下 2019-04-03 0 1 分享 微博 QZONE 微信...

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

160. 如何启用摇一摇 [ 90%]

...odel.Model; /** * ... * @author 偷心枫贼 */ public class Controller_yao1yao { public function Controller_yao1yao(model:Model) { __JS__('_model = model'); __JS__('var SHAKE_THRESHOLD = 100'); __JS__('var last_update = 0'); __JS__('var x = y = z = last_x = last_y = last_z = 0;'); __JS__('var canSh...

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