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

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

91. Mesh模型能否动态合并? [ 78%]

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

92. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 77%]

...amera:Camera = (scene.addChild(new Camera(0, 0.1, 100))) as Camera; camera.transform.translate(new Vector3(0, 3, 3)); camera.transform.rotate(new Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionL...

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

93. pivot 设置后 影响 元素大小??????????????? [ 77%]

...0,_core.height); tf.translate(_core.p1.x,_core.p1.y-_core.height); page[1].transform=tf; 我全用transform了, 达到了想要的效果 cuixueying • 2016-12-14 14:14 好的,有问题及时沟通!

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

94. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 77%]

...rrainSprite世界矩阵(为可行走区域世界矩阵) this.terrainSprite.transform.worldMatrix = meshSprite3D.transform.worldMatrix; 把场景模型的世界矩阵赋值到 MeshTerrainSprite3D 对象中,从而初始化地形的x,z轴数据 3.4 得到整数的网格索引 通过地形x,z轴...

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

95. Sprite3D-Sprite3D克隆 [ 77%]

...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onCo...

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

96. IDE创建3D示例项目(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 77%]

...ra = (scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya....

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

97. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 77%]

... let camera = new Laya.Camera(0, 0.1, 100); scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);  let directionLight = new Laya.DirectionLight(); scene.addChild(directionLight); let mat = directionLight.tra...

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

98. 3D模型旋转定位问题 [ 77%]

...build/warehouse1/warehouse1.lh"); scene.addChild(modelSprite); modelSprite.transform.rotate(new Laya.Vector3(0, 90, 0), false, false);无法实现旋转效果 也不会报任何错误,打断点是确定这个modelSprite是sprite3D对象 附件上传了我的工程文件。   如果是使用Laya.l...

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

99. 高级应用-闪光 [ 77%]

...ene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 6, 10)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var glitter = scene.addChild(new Laya.Glitter()); var glitterTemplet = glitter.templet; var glitterMaterial =...

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

100. Cannot read property 'rayCast' of undefined [ 77%]

....stage.addChild(this.scene); this.scene.addChild(this.camera); this.camera.transform.translate(new Laya.Vector3(0, 3.5, 1)); this.camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //3.清除照相机颜色 this.camera.clearColor = null; this.directionLight = new Laya.DirectionLight(...

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