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

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

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 个回复被折叠 要回复问题请先登录 发起人 SNAKE 相...

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

2. laya.d3.core.material.RenderState_API3.0 [ 91%]

...AM_SRC_ALPHA BLENDPARAM_SRC_ALPHA_SATURATE BLENDPARAM_SRC_COLOR BLENDPARAM_ZERO BLEND_DISABLE BLEND_ENABLE_ALL BLEND_ENABLE_SEPERATE CULL_BACK CULL_FRONT CULL_NONE DEPTHTEST_ALWAYS DEPTHTEST_EQUAL DEPTHTEST_GEQUAL DEPTHTEST_GREATER DEPTHTEST_LEQUAL DEPTHTEST_LESS DEPTHTEST_NEVER DEPTHTEST_NOTEQUAL D...

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

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

...活检测不到; 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 = this.owner.s...

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

4. 动画混合问题,Avatar动画混合报错. [ 80%]

...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.sprite.transform.position,norDir,position) // this....

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

5. 关于2.1.0代码设计的疑问 [ 80%]

...or3 的疑问 如下:2.1.0的Vector3 /**@private */ public static const _ZERO:Vector3 =/*[STATIC SAFE]*/ new Vector3(0.0, 0.0, 0.0); /**@private */ public static const _ONE:Vector3 =/*[STATIC SAFE]*/ new Vector3(1.0, 1.0, 1.0); /**@private */ public static const _NegativeUnitX:Vector3 =/*[STATIC S...

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

6. laya.maths.Matrix4x4_API3.0 [ 70%]

...e Index Constructors constructor Properties elements DEFAULT DEFAULTINVERT ZERO Methods clone cloneByArray cloneTo decomposeTransRotMatScale decomposeTransRotScale decomposeYawPitchRoll equalsOtherMatrix getForward getInvertFront getTranslationVector identity invert isIdentity normalize setForward s...

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

7. laya.d3.math.Matrix4x4_API3.0 [ 69%]

...plements IClone Index Constructors constructor Properties elements DEFAULT ZERO Methods clone cloneByArray cloneTo decomposeTransRotMatScale decomposeTransRotScale decomposeYawPitchRoll equalsOtherMatrix getElementByRowColumn getForward getInvertFront getTranslationVector identity invert isIdentity ...

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

8. 引擎这一句是不是疏忽了? [ 69%]

...cene.";         rigidBody.clearForces();         var nativeZero=Rigidbody3D._nativeVector3Zero;         rigidBody.setInterpolationAngularVelocity(nativeZero);         rigidBody.setLinearVelocity(nativeZero);         rigidBody.setInterpolationAngularVelocity(na...

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

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

...容相关的链接 提交 4 个回复 Faith_mkx 赞同来自: Laya.Vector3.ZERO 居然各分量不等于0?   transform.position 给它赋值过后,居然会被自动修改到初始值(加载进来时的位置)。   谁能给个靠谱答案,别给什么重置装IDE,重装系统的回复...

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

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

... _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(Laya.Mouse...

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