大约有 2 项符合查询结果, 库内数据总量为 30,961 项。 (搜索耗时: 0.0018 秒)
...dFromAStarMap(texture): any { var textureWidth = texture.width; var textureHeight = texture.height; var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; for (var w = 0; w < textureWidth; w++) { var colaStarArr = aStarArr[w] = []; for (var h = 0; h < textureHeight; h++) { var...
来源: Laya3.0_文档 发布时间: 20230303
...iewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代码,当鼠标点击屏幕时,会发射一...
来源: Laya3.0_文档 发布时间: 20240910