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

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

1. 后处理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 100%]

... number 旋转角度 0.0 autoRotate boolean 是否自动旋转 false scale Vector2 缩放(x, y) Vector2(1, 1) positionOffset Vector2 位置偏移(屏幕空间,x, y) Vector2(0, 0) 图3-1-4 我们将贴图拖入装饰器,再将镜头光晕数据和灯光拖入,即可实现图3-1-5的效...

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

2. 使用3D摄像机 · LayaAir3.4 · 引擎文档 · LAYABOX [ 84%]

...位置位置。 * @param out 输出射线。 */ viewportPointToRay(point: Vector2, out: Ray): void { this._rayViewport.x = this.viewport.x; this._rayViewport.y = this.viewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(p...

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

3. 2D物理系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 71%]

...可以在代码中设置,示例代码如下: Physics2D.I.gravity= new Vector2(0,9.8) 2.3.3 重力缩放系数 gravity Scale 除了全局的重力加速度参数设置外,刚体的重力缩放系数属性,是用于独立影响单个动态刚体重力效果的参数。 该值乘以重力值,...

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

4. 2D寻路 · LayaAir3.4 · 引擎文档 · LAYABOX [ 60%]

...e, Nav2DAgent); } onMouseClick(evt: Laya.Event): void { let pos = new Laya.Vector2(evt.stageX, evt.stageY); console.log("click", pos); this._temp.graphics.clear(); this._allAgent.forEach((agent) => { agent.destination = pos; let paths = agent.getCurrentPath(); if (paths.length >= 2) { let poin...

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

5. 3D物理系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

...* ……省略若干代码 */ //创建一个屏幕点 let point = new Laya.Vector2(); //创建一个射线 Laya.Ray(射线的起点,射线的方向) let ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point....

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