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

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

1. 进度条组件 · LayaAir3.0文档 · LAYABOX [ 100%]

...毕,此方法只执行一次 onAwake(): void { this.progressBar.value = 0.01; //初始进度值 this.loadText.text = "资源加载中……"; // 测试加载效果 Laya.timer.loop(100, this, this.changeProgress); } //这里仅模拟加载演示效果 changeProgress(): void { this.progressBar.value...

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

2. 组件属性的代码使用 · LayaAir3.0文档 · LAYABOX [ 96%]

... cube: Laya.Sprite3D; private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图1-4所示: (动图1-4) 1.3 3D节点的进阶使用 @property( { type :Laya.Sprite3D ...

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

3. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 53%]

....Camera; protected scene: Laya.Scene3D = new Laya.Scene3D; speed: number = 0.01; constructor() { super(); } /** * @private */ protected _updateRotation(): void { if (Math.abs(this.yawPitchRoll.y) < 1.50) { Laya.Quaternion.createFromYawPitchRoll(this.yawPitchRoll.x, this.yawPitchRoll.y, this.yawPi...

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

4. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 23%]

... cube: Laya.Sprite3D; private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图4-4所示: (动图4-4) 4.1.3 3D节点的进阶使用 @property( { type :Laya.Sprite3...

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

5. 2D物理编辑 · LayaAir3.0文档 · LAYABOX [ 20%]

...。 对于非常光滑的表面(如冰面),摩擦系数可能接近0.01;对于日常生活中的接触表面,如橡胶与干燥路面,摩擦系数可能在0.1到1之间;动图12-2演示了不同摩擦系数的效果。 (动图12-2) 3.2.3 恢复系数 restitution 恢复系数是描...

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