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

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

1. 3d坐标转屏幕坐标的问题 [ 100%]

...览: 3408 关注: 4 人 jacc • 2020-04-08 10:23 就是简单的 camera.viewport.project(this._ownerView.transform.position, camera.projectionViewMatrix, this._outPos); let tx: number = this._outPos.x / Laya.stage.clientScaleX; let ty: number = this._outPos.y / Laya.stage.clientScaleY; 在相机视...

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

2. 摄像机不在原点的时候3D空间转2D空间会失效? [ 97%]

...Laya.stage.mouseX; this.point.elements[1] = Laya.stage.mouseY; this.camera.viewportPointToRay(this.point, this.ray); Laya.Physics.rayCast(this.ray, this._outHitInfo) 然后: this.camera.viewport.project(this._outHitInfo.position, this.camera.projectionViewMatrix, this._outPos); var x = this._outPo...

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

3. 3D空间转2D空间的问题 [ 96%]

3D空间转2D空间的问题 3D空间转2D空间我用的是 this.camera.viewport.project(this.playerArray[i].transform.position, this.camera.projectionViewMatrix, this.imgPos2); 转换的坐标到this.imgPos2里面。 像这样的一个场景。加载图片到3D物体上跟着3D物体跑动这样...

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

4. 1.7.18beta下转换3D坐标不正确 [ 94%]

...  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

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

...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

6. 2D图片在3D场景中定位问题 [ 88%]

...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

7. 回调函数传递sprite3D问题 [ 85%]

...)+( 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