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

大约有 169 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

121. 转换2D屏幕坐标系统到3D正交投影下的坐标系统位置偏差 [ 72%]

...坐标 camera.convertScreenCoordToOrthographicCoord(screenPos, pos); cube.transform.position = pos; });图一   2022-05-26 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 158*****197 相关问题 【屏幕适配】在LayaAir上面是竖...

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

122. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 71%]

...节点添加onTriggerEnter的脚本监听, 当我不更改 红色小人的 transform.rotationEuler 值时,图中黑色小牛要靠近红色小人才会触发onTriggerEnter的回调,一切运行正常.   但是当我在update里 更改红色小人的 transform.rotationEuler 值后,黑色小牛并不...

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

123. laya.d3.webxr.core.WebXRCamera_API3.0 [ 71%]

...ojectionMatrix projectionViewMatrix renderingOrder scene skyRenderer timer transform url viewMatrix viewport _updateMark Methods _applyCommandBuffer _createOpaqueTexture _initialize _isLayerVisible _needRenderGamma _processActive _updateCameraRenderData addAllLayers addChild addChildAt addChildren a...

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

124. 教学文档永恒之光的动画例子,运行效果与例子不符合 [ 71%]

...cene()); let camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); scene.addChild(Laya.Sprite3D.load("../../../../../../../res/resourse/particle/ETF_Eternal_Light.lh")); //此...

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

125. laya.d3.core.Camera_API3.0 [ 70%]

...x projectionViewMatrix renderTarget renderingOrder scene skyRenderer timer transform url viewMatrix viewport _updateMark Methods _applyCommandBuffer _createOpaqueTexture _initialize _isLayerVisible _needRenderGamma _processActive _updateCameraRenderData addAllLayers addChild addChildAt addChildren a...

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

126. position -position应该怎么写?? [ 70%]

...Loop() { cameraPos = camera.position; viewDir = camera.position - lineMesh.transform.position; console.log(viewDir); lineMesh.transform.lookAt(new Laya.Vector3(3, 3, 3), viewDir, true); } 2017-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

127. 从Unity中编辑并导出摄像机(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 69%]

...像机面板: ![](img/1.png)(图1) **支持导出的摄像机设置**: Transform选择组件。可以调整摄像机的**Position**位置,**Rotation**选择和**Scale**缩放。 Background背景,在没有天空盒的情况下,将选中的颜色应用到剩余屏幕。 Culling Mask 剔除遮...

来源: Laya2.0_文档 发布时间: 20210715

128. 3d坐标转屏幕坐标的问题 [ 68%]

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

129. 回调函数传递sprite3D问题 [ 68%]

...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)-20); }我这样写 ...

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

130. timer无法执行 [ 67%]

...D(Laya.PrimitiveMesh.createSphere(1)); this.scene1.addChild(ball);   ball.transform.position = new Laya.Vector3((Math.random() - 0.5) * 2, 10, 17); //添加刚体   ball.addComponent(Laya.PhysicsCollider); let ballrigid: Laya.Rigidbody3D = ball.addComponent(Laya.Rigidbody3D); ballrigid.colliderSha...

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