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

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

41. 加载不了模型 [ 75%]

...era = (scene.addChild(new Laya.Camera(0, 0.1, 10000)));         camera.transform.translate(new Laya.Vector3(0, 5, 5));         camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);         camera.clearColor = Laya.Vector3(255,255,0.1);         camera.addComponent(CameraM...

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

42. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 74%]

... camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; direct...

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

43. 3d中 缓动往一个点转向并移动的问题 [ 74%]

...ternion=new Quaternion(); var dir:Vector3=new Vector3() ; Vector3.subtract(transform.position,sphere3D.transform.position,dir); Quaternion.rotationLookAt(dir,Vector3.Up,out); Quaternion.slerp(transform.rotation,out, Laya.timer.delta/1000,out1); transform.rotation = out1; transform.translate(v3)   ...

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

44. 组件属性的代码使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图1-4所示: (动图1-4) 1.3 3D节点的进阶使用 @property( { type :Laya.Sprite3D } ) //节点类型 public p3d: Laya.Sprite3D; onAwake(): void { this.p3d...

来源: Laya3.0_文档 发布时间: 20251010

45. laya.d3.utils.Utils3D_API3.0 [ 73%]

...deByHierarchyPath _getParentNodeByHierarchyPath billboardTrans createAffineTransformationArray getURLVerion mulMatrixByArray mulMatrixByArrayAndMatrixFast mulMatrixByArrayFast quaternionWeight transformQuat transformVector3ArrayByQuat transformVector3ArrayToVector3ArrayCoordinate transformVector3Arr...

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

46. Mesh模型能否动态合并? [ 73%]

...3D(xxxx)); //加载材质 layaMonkey.meshRender.material = mat; layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //Laya.timer.frameLoop(1, this, function () { // layaMonkey.transform.rotate(this.rotat...

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

47. 摄像机旋转问题 [ 72%]

...mer.frameLoop(1, this, function():void{                 camare.transform.rotate(_rotateC);             });         } 这个并不是绕物体旋转的 2017-06-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

48. 可以让一个Sprite做rotationX旋转吗? [ 72%]

...让一个Sprite做rotationX旋转吗? 类似Flash里的Matrix3D类 给mc.transform.matrix3D设置的那种 或者类似Flash里的 rect1.rotationX = 15; 这种设置 可以轻松让Sprite做一个绕X轴的旋转? 2016-12-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

49. 加载.lh文件 运行后黑屏 无法显示 [ 71%]

...his.scene.ambientColor = new Laya.Vector3(1, 1, 1);         camera.transform.translate(new Laya.Vector3(0,0.8,1.5));         camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false);     //  var camera:Laya.Camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100)) as...

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

50. 碰撞检测问题 [ 71%]

...= new Laya.StandardMaterial(); dhBox.meshRender.material = dhBoxMat; dhBox.transform.position = new Laya.Vector3(0.32, 2.13, 34.1); dhBox.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); dhBox.layer = Laya.Layer.getLayerByNumber(10); 然后这样去检测他 Laya.Physics.rayCast(ray, _outH...

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