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

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

1. 陀螺仪与加速计(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 100%]

...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

2. 陀螺仪与加速计(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 99%]

... 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

3. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 99%]

... 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

4. 寻路系统(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 78%]

... 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

5. 寻路系统(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 77%]

... 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

6. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 77%]

...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

7. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 60%]

...value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } })(); ```

来源: Laya2.0_文档 发布时间: 20210715

8. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 58%]

...; } private onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } } new laya.UI_ProgressBar(); ```

来源: Laya2.0_文档 发布时间: 20210715

9. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 57%]

...*/ private function onChange(value:Number):void { trace("进度:" + Math.floor(value * 100) + "%"); } } } ```

来源: Laya2.0_文档 发布时间: 20210715

10. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 34%]

...更新方法 * 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