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

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

81. laya.d3.core.particleShuriKen.ShurikenParticleRenderer [ 77%]

...urikenParticleRenderer  _renderUpdate(context:RenderContext3D, transfrom:Transform3D):void[override] ShurikenParticleRenderer event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册...

来源: Laya2.0_api 发布时间: 20190513

82. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 76%]

...me = "camera";         //相机平移位置         camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5));         //旋转相机         camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);                      //创建平行光 ...

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

83. 射线检测-点击行走 [ 76%]

...相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionL...

来源: Laya_示例 发布时间: 20251209

84. 下面这段unity碰撞代码如何用laya2.0物理引擎实现 [ 76%]

...at newImpulsePercent, float impulseForce) {     Vector3 a = base.transform.position - collision.gameObject.transform.position;     float num = -(newImpulsePercent * impulseForce / 100f);     num = Mathf.Clamp(num, -impulseForce, impulseForce);     a.Normalize();  ...

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

85. 1.0 骨骼drawcall优化猥琐方法 [ 76%]

...ue2D.create(ShaderDefines2D.SKINMESH, 0));                 transform || (transform = Matrix.EMPTY);                 transform.translate(x, y);                 Matrix.mul(transform, context._curMat, _tempMatrix);                 transfor...

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

86. 动画-新版骨骼动画 [ 75%]

...ene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(...

来源: Laya_示例 发布时间: 20251209

87. tween如何更改3d物体位置 [ 75%]

...接 提交 1 个回复 zszen 赞同来自: 我自己来  box.potOld = box.transform.position;Laya.Tween.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,La...

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

88. 怎么让模型原地依照Y轴旋转到 我指定的角度? 角度 如何 转换成 Y轴旋转 的四元数? [ 75%]

...。使用这个方法就可以直接把第二个问题绕开了。 var t:Transform3D; t.localRotationEuler = new Vector3(0, 45, 0); 不过在这里还是贴一下使用代码: var q:Quaternion = new Quaternion(); Quaternion.createFromYawPitchRoll(45,0,0,q);   2017-09-19 1 0 分享 微博 QZONE 微...

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

89. 材质的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 75%]

...phere(0.5))); //将创建的球放置在导出球的同一点 this.sphere2.transform.position = this.sphere.transform.position; //将创建的球平移 this.sphere2.transform.translate(new Laya.Vector3(0, 1.3, 0),false); //将从导出球上拿到的材质 贴给代码创建的球 this.sphere2.meshR...

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

90. camera坐标问题的疑问 [ 75%]

camera坐标问题的疑问 camera.transform.position=new Vector3(0,3,10);//图片中的A点 camera.transform.rotate(new Vector3(-17,0,0),true,false);//图上的B点 但是效果竟然把三D模型放在舞台的正中间,这个坐标实在是不明白怎么来的, https://ldc.layabox.com/doc/?...

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