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

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

21. 3d中 缓动往一个点转向并移动的问题 [ 48%]

...nLookAt(dir,Vector3.Up,out); Quaternion.slerp(transform.rotation,out, Laya.timer.delta/1000,out1); transform.rotation = out1; transform.translate(v3)   附件中是unity的效果  2018-07-26 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

来源: Laya_社区 发布时间: 20180726

22. 2D方向光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

... } onUpdate(): void { // 更新时间 this.dayTime = (this.dayTime + Laya.timer.delta / 1000) % this.dayDuration; const totalMinutes = Math.floor((this.getAdjustedProgress()) * 24 * 60); const hours = Math.floor(totalMinutes / 60); const minutes = totalMinutes % 60; const timeString = `${this.padNum...

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

23. 2.0版本可用的CameraMoveScript.ts [ 44%]

...erride*/ onUpdate(): void {         var elapsedTime: number = Laya.timer.delta;         if (!isNaN(this.lastMouseX) && !isNaN(this.lastMouseY) && this.isMouseDown) {             var scene: Laya.Scene3D = this.owner.scene;             var offset...

来源: Laya_社区 发布时间: 20200707

24. 3D中摄像机绕物体旋转该如何实现? [ 37%]

...e.mouseY - this.lastMouseY; } public get deltaTime(): number { return Laya.timer.delta / 1000; } public deltaWheel: number = 0; public FORWORD: Vector3 = new Vector3(); public get GetForward(): Vector3 { this.transform.getForward(this.FORWORD); return this.FORWORD } protected lastMouseX: number = 0;...

来源: Laya_社区 发布时间: 20170714

25. 官方案例里摄像机绕物体旋转脚本的问题 [ 37%]

...e.mouseY - this.lastMouseY; } public get deltaTime(): number { return Laya.timer.delta / 1000; } public deltaWheel: number = 0; public FORWORD: Vector3 = new Vector3(); public get GetForward(): Vector3 { this.transform.getForward(this.FORWORD); return this.FORWORD } protected lastMouseX: number = 0;...

来源: Laya_社区 发布时间: 20190224

26. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 25%]

... * 监听键盘事件 */ onUpdate(): void { var elapsedTime: number = Laya.timer.delta; if (!isNaN(this.lastMouseX) && !isNaN(this.lastMouseY) && this.isMouseDown) { Laya.InputManager.hasKeyDown(87) && this.moveForward(-this.speed * elapsedTime);//W Laya.InputManager.hasKeyDo...

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