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

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

261. VR场景-VR场景 [ 59%]

...n/scene/Arena/Arena.ls")) //与3d场景的不同是添加了vr相机 var vrCamera = scene.addChild(new Laya.VRCamera(0.03, 0, 0, 0.1, 100)); vrCamera.transform.translate(new Laya.Vector3(0, 2, 0)); vrCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; vrCamera.addComponent(VRCameraMoveScript); var sky...

来源: Laya_示例 发布时间: 20260106

262. phasorSpriter3D 无法使用 [ 59%]

...Corners(_corners) this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, this.camera); this.phasorSpriter3D.line(_corners[0], _color, _corners[1], _color); this.phasorSpriter3D.line(_corners[1], _color, _corners[2], _color); this.phasorSpriter3D.line(_corners[2], _color, _corners[3], _color); this.phas...

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

263. 3D场景里面怎么画线条 [ 59%]

...aya.Vector3(0,0,100);     phasorSpriter3D.begin(Laya.WebGLContext.LINES, camera); phasorSpriter3D.line(_corners[0], _color, _corners[1], _color); phasorSpriter3D.line(_corners[1], _color, _corners[2], _color); phasorSpriter3D.line(_corners[2], _color, _corners[3], _color); phasorSpriter3D.line(_co...

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

264. 添加射线后,预览运行界面一块黑 [ 59%]

...-20 08:18 window10 x64 仓颉 • 2023-02-20 08:33 跟Rabbit.ts中的 this.camera.viewportPointToRay(point, this.ray); 这个有关系 LayaAir3 • 2023-02-20 14:32 @仓颉:已经重现了,问题是Laya.Vector3.ZERO被修改了 把代码 var ray:Laya.Ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vecto...

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

265. 如何在3d场景中添加文字 [ 59%]

...*/ private txtName:Laya.Text; //场景的相机 public otherGameScene:Laya.Camera; private _outPos:Laya.Vector3 = new Laya.Vector3(); this.txtName = new Laya.Text(); this.txtName.color = "#FFFFFF"; this.txtName.text = this.playerName; this.txtName.fontSize = 18; this.txtName.font = "Arial"; this.txt...

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

266. 关于射线碰撞的问题,对于射线的罗辑方式不太了解,懂得进来帮忙看一下!~~~~~~~~~~ [ 59%]

...rrPosition;    }                 //刷新摄像机位置    camera.transform.position=new Vector3(roleModel.transform.position.x, roleModel.transform.position.y + cameraY, roleModel.transform.position.z - cameraZ); } 2017-08-28 1 0 分享 微博 QZONE 微信 ltmking 赞同来自: 我...

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

267. [LayaAirIDE3]2d相机打包后问题 [ 59%]

...户 赞同来自: main代码 // Main.ts - 简化版异步加载 import { CameraController } from "./CameraController"; import { Joystick } from "./Joystick"; import { Player } from "./Player";  const { regClass, property } = Laya;  @regClass() export class Main extends Laya.Script {     @propert...

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

268. ape.pivot(55, 72);啥意思呀 [ 58%]

...)是什么意思 这个写法是什么意思,能否解释一下,谢谢 camera的orthographicVerticalSize属性是什么意思? 文档上写的太简洁了! 控制台显示node --debug-brk=27489 --nolazy Debugger listening on [::]:27489是什么意思? 在ui界面中的json的selecteID指...

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

269. laya.d3.shader.Shader3D_API3.0 [ 58%]

...r3D。 Hierarchy Shader3D Index Constructors constructor Properties PERIOD_CAMERA PERIOD_CUSTOM PERIOD_MATERIAL PERIOD_SCENE PERIOD_SPRITE RENDER_STATE_BLEND RENDER_STATE_BLEND_CONST_COLOR RENDER_STATE_BLEND_DST RENDER_STATE_BLEND_DST_ALPHA RENDER_STATE_BLEND_DST_RGB RENDER_STATE_BLEND_EQUATION REND...

来源: Laya3.0_api 发布时间: 20231102

270. 关于3d的碰撞检测 [ 57%]

...rayOrigin.z) this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, LayaAir3D.camera); this.phasorSpriter3D.line(this._linePos, this._color, this.ray.origin, this._color); this.phasorSpriter3D.end(); console.log("碰撞检测" + this.outHitInfo.distance);//一直都是-1   附件 : --> 2018-03-16 添...

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