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

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

1. Camera.viewportToRay中origin与direction相等问题 [ 100%]

...来自: 确认是我在创建Laya.Ray的时候使用了new Laya.Ray(Laya.Vector3.ZERO, Laya.Vector3.ZERO)这么愚蠢的做法导致的 老是忘了js没有值类型一说.   2019-03-19 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 SNA...

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

2. 我竟然被射线检测这个小功能给难了一天了 [ 91%]

...default;死活检测不到; camera: Laya.Camera; ray = new Laya.Ray(Laya.Vector3._ZERO, Laya.Vector3._ZERO) hitInfo:Laya.HitResult=new Laya.HitResult() physics:Laya.PhysicsSimulation; onAwake():void{ this.camera = this.owner.getChildByName("Main Camera") as Laya.Camera; let scene: Laya.Scene3D = t...

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

3. 动画混合问题,Avatar动画混合报错. [ 86%]

...nimator) as Laya.Animator; console.log("11"); }  public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.transform.translate(norDir,false); // let position = Laya.Vector3.ZERO; // Laya.Vector3.add(this.s...

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

4. laya.maths.Matrix4x4_API3.0 [ 83%]

...urns void decomposeTransRotMatScale decomposeTransRotMatScale(translation: Vector3, rotationMatrix: Matrix4x4, scale: Vector3): boolean Defined in laya/maths/Matrix4x4.ts:545 分解矩阵为平移向量、旋转矩阵、缩放向量。 Parameters translation: Vector3 平移向量。 rotationMatrix: ...

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

5. laya.d3.math.Matrix4x4_API3.0 [ 83%]

...urns void decomposeTransRotMatScale decomposeTransRotMatScale(translation: Vector3, rotationMatrix: Matrix4x4, scale: Vector3): boolean Defined in laya/d3/math/Matrix4x4.ts:523 分解矩阵为平移向量、旋转矩阵、缩放向量。 Parameters translation: Vector3 平移向量。 rotationMatrix...

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

6. this.tranfrom.translate(new Laya.Vector3(0,0,0), false);物体居然也能动?还是往奇怪的方向动,这些API到底有没有经过测试? [ 81%]

this.tranfrom.translate(new Laya.Vector3(0,0,0), false);物体居然也能动?还是往奇怪的方向动,这些API到底有没有经过测试? 2017-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Fait...

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

7. [laya2.0-2.3]CollisionUtils.ts bug [ 78%]

... out 相交点 */ static intersectsRayAndPlaneRP(ray:Ray, plane:Plane, out:Vector3):boolean { var distance:number; if (!CollisionUtils.intersectsRayAndPlaneRD(ray, plane, distance)) { out = Vector3._ZERO; return false; } Vector3.scale(ray.direction, distance, CollisionUtils._tempV30); Vector3.add(ra...

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

8. 射线检测报错,outHitInfo.sprite3D=null; [ 75%]

... public _start(state:Laya.RenderState):void{ this.ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vector3.ZERO); this.phasorSprite3D = new Laya.PhasorSpriter3D(); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDown); }  private onMouseDown():void{ this.camera.viewportPointToRay(new Laya.Vector2(Lay...

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

9. PBR标准材质实时阴影渲染问题 [ 75%]

...; // scene_360.addChild(camera); camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position = new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = Laya.Vector3._ZERO; var directionLight = (scene_360 as Laya.Node)...

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

10. laya.d3.core.material.RenderState_API3.0 [ 72%]

...参数,在blend为BLEND_ENABLE_SEPERATE时生效。 stencilOp stencilOp: Vector3 Defined in laya/d3/core/material/RenderState.ts:156 模板设置值 stencilRef stencilRef: number Defined in laya/d3/core/material/RenderState.ts:154 模板值 一般会在0-255 stencilTest stencilTest: number Defined i...

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