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

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

431. 3d射线检测问题 [ 73%]

...era(0, 0.3, 100)) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 25, 16)); this.camera.transform.rotate(new Laya.Vector3(-56, 0, 0), true, false); 2018-10-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

432. PointLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 73%]

...ya.PointLight()); //设置点光源颜色 this.pointLight.color = new Laya.Vector3(1.0, 0.5, 0.0); //设置点光源位置 this.pointLight.transform.position = new Laya.Vector3(0.4, 0.4, 0.0); //设置点光源的范围 this.pointLight.range = 3.0; ``` **range** 为设置点光源的范围,相当...

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

433. 评论功能没用的吗? [ 73%]

... null, function (sprite) {       sprite.transform.position = new Laya.Vector3(0,0,-100); }); 在游戏中 调整模型的位置需要在场景加载完后进行操作! 2017-03-16 1 2 分享 微博 QZONE 微信 cuixueying 赞同来自: 如果长时间无人回复,你可以重新发起新帖...

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

434. 3D模型tween旋转 [ 73%]

3D模型tween旋转 Laya.Tween.to(sss.transform,{rotationEuler:new Laya.Vector3(0,0,0)},2000); sss是MeshSprite3D的节点,从unity导入laya的模型 运行上述代码后,模型不旋转。 使用sss.transform.rotationEuler=new Laya.Vector3(0,0,0),赋值有效   想问下,是我这个...

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

435. laya.d3.core.material.Material_API3.0 [ 73%]

...PropertyValue getTexture getTextureByIndex getVector2 getVector2ByIndex getVector3 getVector3ByIndex getVector4 getVector4ByIndex hasDefine hasListener isCreateFromURL off offAll offAllCaller oldparseEndEvent on once removeDefine setBool setBoolByIndex setBuffer setBufferByIndex setColor setColorByI...

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

436. camera坐标问题的疑问 [ 72%]

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

437. 关于射线检测,返回所有碰撞结果的问题 [ 72%]

...撞结果的问题 this.scene.physicsSimulation.raycastAllFromTo(new Laya.Vector3(pos.x, -1, pos.z + 1), new Laya.Vector3(pos.x, 0 + 99, pos.z + 1), vAlign);   这里的 vAlign,数组内的碰撞结果 顺序是随机的还是和射线方向有关,我使用的时候,这个碰撞结果顺序是...

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

438. DirectionLight介绍(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 72%]

... Laya.DirectionLight; //方向光的颜色 directionLight.color = new Laya.Vector3(1, 1, 1); //设置平行光的方向 var mat = directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; ``` ​ **setForward** 平行光的方...

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

439. 3d模型位置设置 [ 72%]

...请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: Vector3 有 clone 跟 cloneTo 方法。   var _tempV3 = new Vector3(); a.transform.position.cloneTo(_tempV3); b.transform.position = _tempV3; 2017-12-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...

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

440. DirectionLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 72%]

...rectionLight()); //设置灯光颜色 this.directionLight.color = new Laya.Vector3(1, 1, 1); //设置灯光方向 var mat = this.directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); this.directionLight.transform.worldMatrix = mat; ``` ​ **setForward** 平行光...

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