大约有 34 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0033 秒)
...创建一条射线 从摄像机创建一条射线,使用的是camera的 viewportPointToRay 方法。生成的这条射线是从摄像机的近裁剪面的一点出发,向远裁剪面的一点。这个射线的反向延长线经过摄像机的原点。 /** * 计算从屏幕空间生成的射线...
来源: Laya3.0_文档 发布时间: 20251010
... this.layaMonkey3D.transform.position = this._position; this.camera.viewport.project(this.layaMonkey3D.transform.position, this.camera.projectionViewMatrix, this._outPos); this.layaMonkey2D.pos(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY); } 2018-04...
来源: Laya_社区 发布时间: 20180425
...停止渲染的距离。 Near 近裁剪面。 Far 远裁剪面。 Viewport Rect 视口矩形。 x:相机视图将进行绘制的水平位置的起点。 y:相机视图将进行绘制的垂直位置的起点。 w:相机输出到屏幕的宽度。 h:相机输出到屏...
来源: Laya2.0_文档 发布时间: 20210715
...w Laya.Vector3(this._position.x, 5, this._position.z); this.otherGameScene.viewport.project(currPosition2,this.otherGameScene.projectionViewMatrix,this._outPos); this.txtName.pos(this._outPos.x / Laya.stage.clientScaleX - this.txtName.width/2, this._outPos.y / Laya.stage.clientScaleY); 2017-10-10...
来源: Laya_社区 发布时间: 20171010
...a.timer.frameLoop(1, this, functionname); function functionname() { camera.viewport.project(warehouse1.transform.position, camera.projectionViewMatrix, _outPos); 2dname.pos(_outPos.x / Laya.stage.clientScaleX, _outPos.y / Laya.stage.clientScaleY); } bing8310124 • 2018-01-03 10:35 那如果我想...
来源: Laya_社区 发布时间: 20180102
... 另外,射线的位置和方向也很奇怪,好像并没有穿过viewport中鼠标点击的位置,请看附件中的源代码 两个问题: 1. 看运行情况,射线应该是穿越了某些plane实体,但outHitResult.succeeded仍然是false,且collider也是null,方法...
来源: Laya_社区 发布时间: 20191219
...ry...................... render(context: { command: any; camera: { viewport: any; }; source: Laya.RenderTexture; deferredReleaseTextures: any; }) { ....... var sourceTex = context.source; var targetTex = Laya.RenderTexture.createFromPool(t...
来源: Laya_社区 发布时间: 20200522
...)+( 0 - cameraY) * ( 0 - cameraY) + ( 0 - cameraZ)*( 0 - cameraZ)); camera.viewport.project(spr.transform.position, camera.projectionViewMatrix, _outPos); msg1.scale(300/xp, 300/xp); msg1.pivot(msg1.width,msg1.height); msg1.pos(_outPos.x / Laya.stage.clientScaleX,(_outPos.y / Laya.stage.clientScaleY...
来源: Laya_社区 发布时间: 20180105
... 1 ], "viewport":[ 0, 0, 1, 1 ], "cle...
来源: Laya_社区 发布时间: 20180122
...型分辨率的。 底下的逻辑较复杂(设计到stage\canvas\camera viewport\screen等多个size的合作),我这个是3D,2D混合项目(3D,2D彼此对齐方式还有一定出入),所以就没折腾了,采用上面单调整UI上下对齐的方式。 仅供参考。 2018-04-04 2...
来源: Laya_社区 发布时间: 20180404