大约有 11 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0029 秒)
...viceorientation(absolute, rotationInfo) { this.info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta :" + Math.floor(rotationInfo.beta) + '\n' + "gamma:" + Math.floor(rotationInfo.gamma); } ``` ## 2、加速计 `Accelerator`类定期发送设备的运动传感器检测的活动...
来源: Laya2.0_文档 发布时间: 20210714
... rotationInfo:RotationInfo):void { info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta :" + Math.floor(rotationInfo.beta) + '\n' + "gamma:" + Math.floor(rotationInfo.gamma); } ``` ## 2、加速计 `Accelerator`类定期发送设备的运动传感器检...
来源: Laya2.0_文档 发布时间: 20210714
... rotationInfo: Laya.RotationInfo): void { this.info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta :" + Math.floor(rotationInfo.beta) + '\n' + "gamma:" + Math.floor(rotationInfo.gamma); } } new Gyroscope_Sample(); ``` ## 2、加速计 `Accelerator`类定期发送设备的运动...
来源: Laya2.0_文档 发布时间: 20210715
... cellZ = this.terrainSprite.depth / this.aStarMap.height; var gridX = Math.floor((x - minX) / cellX); var gridZ = Math.floor((z - minZ) / cellZ); var boundWidth = this.aStarMap.width - 1; var boundHeight = this.aStarMap.height - 1; (gridX > boundWidth) && (gridX = boundWidth); (gridZ > boundHeight) ...
来源: Laya2.0_文档 发布时间: 20210714
... cellZ = this.terrainSprite.depth / this.aStarMap.height; var gridX = Math.floor((x - minX) / cellX); var gridZ = Math.floor((z - minZ) / cellZ); var boundWidth = this.aStarMap.width - 1; var boundHeight = this.aStarMap.height - 1; (gridX > boundWidth) && (gridX = boundWidth); (gridZ > boundHeight) ...
来源: Laya2.0_文档 发布时间: 20210715
...cellZ:Number = terrainSprite.depth / aStarMap.height; var gridX:int = Math.floor((x - minX) / cellX); var gridZ:int = Math.floor((z - minZ) / cellZ); var boundWidth:int = aStarMap.width - 1; var boundHeight:int = aStarMap.height - 1; (gridX > boundWidth) && (gridX = boundWidth); (gridZ > boundHeight...
来源: Laya2.0_文档 发布时间: 20210714
...value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } })(); ```
来源: Laya2.0_文档 发布时间: 20210715
...; } private onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } } new laya.UI_ProgressBar(); ```
来源: Laya2.0_文档 发布时间: 20210715
...*/ private function onChange(value:Number):void { trace("进度:" + Math.floor(value * 100) + "%"); } } } ```
来源: Laya2.0_文档 发布时间: 20210715
...更新方法 * txt 缓动对象 */ function updateColor(txt){ var c = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的回调...
来源: Laya2.0_文档 发布时间: 20210715