大约有 84 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0042 秒)
...ew Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _position = new Laya.Vector3(0, 0.25, 0); var _quaternion = new Laya.Quaternion(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { box.transform.position = _position; box.transform.rotation = _qu...
来源: Laya_示例 发布时间: 20241123
...整数的网格索引 */ 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
...ew Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.view...
来源: Laya_示例 发布时间: 20241123
...2d微信小游戏中 在微信2d工程里面 创建向量 var v = new Vector2(); 会报错 TypeError: Vector2 is not a constructor 2018-06-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 c__yh 赞同来自...
来源: Laya_社区 发布时间: 20180607
... 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
...ader/SubShader.ts:43 a_SimpleTextureParams a_SimpleTextureParams: [number, Vector2] = [VertexMesh.MESH_SIMPLEANIMATOR, ShaderDataType.Vector2] Defined in laya/d3/shader/SubShader.ts:52 a_Tangent0 a_Tangent0: [number, Vector4] = [VertexMesh.MESH_TANGENT0, ShaderDataType.Vector4] Defined in laya/d3/sh...
来源: Laya3.0_api 发布时间: 20231102
...NSTANCETYPE_UNIFORMBUFFER Methods clear getPropertyArray setNumberArray setVector2Array setVector3Array setVectorArray Constructors constructor new MaterialInstancePropertyBlock(): MaterialInstancePropertyBlock Defined in laya/d3/core/render/command/MaterialInstancePropertyBlock.ts:33 Returns Materi...
来源: Laya3.0_api 发布时间: 20231115
...原点。 ![](img/1.png)(图1) ```typescript //创建一个点 var point:Vector2 = new Vector2(); //创建一个射线 var ray: Ray= new Ray(new Vector3(0, 0, 0), new Vector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point.y = Laya.stage.mouseY; //计算一个从屏...
来源: Laya2.0_文档 发布时间: 20210714
...r 旋转角度 out: Matrix3x3 输出矩阵 Returns void scale scale(scale: Vector2, out: Matrix3x3): void Defined in laya/maths/Matrix3x3.ts:250 根据制定缩放3x3矩阵 Parameters scale: Vector2 缩放值 out: Matrix3x3 输出矩阵 Returns void translate translate(trans: Vector2, out: Matrix3x3...
来源: Laya3.0_api 发布时间: 20231115
...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