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

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

1. new vector2报错 [ 100%]

new vector2报错 let pos: Laya.Vector2 = new Laya.Vector2(100, 100); 直接就包了一个异常 "Laya.Vector2 is not a constructor" 这是为什么   版本1.7.20 beta 附件 : --> 2018-08-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

2. 请问怎么实例化一个vector2类? [ 93%]

LayaAir引擎 请问怎么实例化一个vector2类? 请问我应该怎么实例化出一个vector2类?语言:typescript 我尝试使用以下代码实例化,结果运行时报错:  var startVec:Laya.Vector2 = new laya.d3.math.Vector2(this._role.x, this._role.y); 2016-08-30 添加评论 ...

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

3. 加载.lh文件 运行后黑屏 无法显示 [ 87%]

...;     private rotation:Laya.Vector3;     private lastPosition:Laya.Vector2;     private distance:number = 0.0;     private disVector1:Laya.Vector2;     private disVector2:Laya.Vector2;     private isTwoTouch:boolean;     private first:boolean;     private twoFirst:boo...

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

4. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 86%]

...;     private rotation:Laya.Vector3;     private lastPosition:Laya.Vector2;     private distance:number = 0.0;     private disVector1:Laya.Vector2;     private disVector2:Laya.Vector2;     private isTwoTouch:boolean;     private first:boolean;     private twoFirst:boo...

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

5. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 80%]

...整数的网格索引 */ private getGridIndex(x: number, z: number, out: Vector2) { var minX = this.terrainSprite.minX; var minZ = this.terrainSprite.minZ; var cellX = this.terrainSprite.width / this.aStarMap.width; var cellZ = this.terrainSprite.depth / this.aStarMap.height; var gridX = Math.floor(...

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

6. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 77%]

...     this.camera = null;         this.lastPosition = new Laya.Vector2(0, 0);         this.distance = 0.0;         this.disVector1 = new Laya.Vector2(0, 0);         this.disVector2 = new Laya.Vector2(0, 0);         this.isTwoTouch = false;         ...

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

7. physicsSimulation.rayCast在新版本里选取不准确 [ 76%]

...a.Vector3 = new Laya.Vector3();          let screenPoint:Laya.Vector2 = new Laya.Vector2();         screenPoint.x = Laya.MouseManager.instance.mouseX;         screenPoint.y = Laya.MouseManager.instance.mouseY;  //      console.log(screenPoint);       ...

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

8. 在代码新建b2Vec对象会导致编译阶段就出错 [ 73%]

...引用的b2Vec2是box2D库里面的变量类型,引擎提供的是Laya.Vector2,您将b2Vec2改为Laya.Vector2就可以了。   2023-11-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 誌偉王 相关问...

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

9. 请问一下我一个3d模型,贴图是UV类型的里面好多张图,在代码里面怎么调用其它的贴图 [ 70%]

...                             transformUV.offset = new Vector2(0.099,0);                             mat.transformUV = transformUV;                         }                         var twoMc:MeshSprite3D = Sprite3D.instant...

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

10. 摄像机的viewportPointToRay报错 [ 68%]

...43P1%XK0EMLAZO8{}XNAMK.pngB43P1%XK0EMLAZO8{}XNAMK   private pointRay:Laya.Vector2 = new Laya.Vector2(); private hitresult:Laya.HitResult = new Laya.HitResult(); private UpdateRay() { //射线初始化(必须初始化) //获取鼠标在屏幕空间位置  this.pointRay.x = Laya.MouseManager.ins...

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