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

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

151. LayaBox现在支持骨骼动画的具体骨骼旋转等操作么。findBone()获取的不是具体骨个么?用了后没有生效 [ 77%]

...e:Laya.Bone = this.mTemplete.mRootBone.findBone("头"); let angle:number = Math.atan2(Laya.stage.mouseY - (this.y - bone.transform.y), Laya.stage.mouseX - (this.x - bone.transform.x))*180/Math.PI; angle = Math.floor(angle); bone.rotation =angle; 2018-06-07 添加评论 免费帖 --> 分享 微博 QZ...

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

152. [LayaAirIDE3]2d相机打包后问题 [ 76%]

...ystickPos = this.getJoystickGlobalPosition();         const distance = Math.sqrt(             Math.pow(e.stageX - (joystickPos.x + 210), 2) +             Math.pow(e.stageY - (joystickPos.y + 210), 2)           );          if (distance > 300) return;          console...

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

153. 同步龙骨插槽动画方案 [ 76%]

...获取骨骼矩阵 */     public getMatrix(slotName: string): laya.maths.Matrix {         return this.mArmature.getSlotByName(slotName).getMatrix();     }      public destroy() {         this.mArmature.stop();//停止龙骨动画播放         this.mFacto...

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

154. 请问这是原因? [ 76%]

...raphics; import laya.display.Sprite; import laya.events.Event; import laya.maths.Point; import laya.utils.Browser; import laya.webgl.WebGL; import laya.wx.mini.MiniAdpter; public class LayaSample { public var sprite:Sprite = new Sprite(); public function LayaSample() { //初始化引擎 MiniAdpter.i...

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

155. timer无法执行 [ 76%]

...ublic shootBall(): void{ //生成空中降落的球 //var random: number = Math.random()*24-7; let ball: Laya.MeshSprite3D = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(1)); this.scene1.addChild(ball);   ball.transform.position = new Laya.Vector3((Math.random() - 0.5) * 2, 10, 17); //添...

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

156. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 76%]

...mage();             image.skin = "res/atlas/clanwar_bg.jpg?" + Math.random();             Laya.stage.addChild(image);              var index:int = 0;             Laya.stage.timerLoop(1, this, function():void{index++;image.alpha = Math.sin(Math.PI*2*(i...

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

157. laya.d3.math.Matrix3x3 [ 76%]

...ames No Frames Matrix3x3Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Matrix3x3InheritanceMatrix3x3 ObjectImplements laya.d3.core.IClone Matrix3x3 类用于创建3x3矩阵。 Public Properties PropertyDefined By  elements : Float32Array矩阵元素数组Matrix3x3Public ...

来源: laya_api 发布时间: 20170929

158. laya.d3.math.Matrix3x3 [ 76%]

...ames No Frames Matrix3x3Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Matrix3x3InheritanceMatrix3x3 ObjectImplements laya.d3.core.IClone Matrix3x3 类用于创建3x3矩阵。 Public Properties PropertyDefined By  elements : Float32Array矩阵元素数组Matrix3x3Public ...

来源: Laya2.0_api 发布时间: 20190513

159. 碰撞检测 飞机大战 [ 75%]

碰撞检测 飞机大战 if(Math.abs(role1.x - role2.x) < hitRadius && Math.abs(role1.y - role2.y) < hitRadius) 很想知道 这个 hitRadius 是值得 敌机的半径+自己飞机的半径嘛 2019-03-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

160. laya.d3.math.OrientedBoundBox [ 75%]

...| Frames No Frames OrientedBoundBoxProperties | Methods Packagelaya.d3.mathClasspublic class OrientedBoundBoxInheritanceOrientedBoundBox Object OrientedBoundBox 类用于创建OBB包围盒。 Public Properties PropertyDefined By  extents : Vector3每个轴长度的一半OrientedBoundBox  tra...

来源: laya_api 发布时间: 20170929