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

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

41. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 88%]

...节点的关联关系,使变换操作更灵活,每个精灵都有一个Transform3D。 (图2-9) 我们也可以在编辑器里手动调整精灵的变换 (图2-10) (图2-11) 图2-10用来调整精灵的旋转,图2-11用来调整精灵的缩放 (图2-12) 图2-12可同时用来调...

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

42. 同一类型光源互斥的问题报告 [ 88%]

...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(3, 8, 10)); camera.transform.lookAt(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 1, 0)); camera.clearColor = new Laya.Vector3(0.3, 0.3, 0.5); camera.addComponent(CameraMoveScript); //创...

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

43. 为什么动态设置聚光灯朝向无效呢 [ 88%]

...ar tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚光灯,始...

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

44. 为什么动态设置聚光灯朝向无效呢 [ 88%]

...ar tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚光灯,始...

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

45. 材质-BlinnPhong-法线贴图 [ 87%]

...; var camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 0.6, 1.1)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.V...

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

46. 3d模型位置设置 [ 87%]

...位置 赋给 另一个位置 应该怎么写,怎么才能生效呢? A.transform.translate(B.transform.position,false); A.transform.rotate(B.transform.rotation,false,false) ; 2017-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

47. 如何让3D物体在xy平面上做曲线运动时其z轴旋转角度也跟着变化? [ 86%]

...//计算与上一次X坐标的差值 let speedX = newPos.x - pathItem.item.transform.position.x; //计算与上一次Y坐标的差值 let speedY = newPos.y - pathItem.item.transform.position.y; let angle = 0; //得到差值向量的弧度 angle = Math.atan2(speedY , speedX); //计算与上一次弧...

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

48. 为什么动态设置聚光灯朝向无效呢 [ 86%]

...ar tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚光灯,始...

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

49. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 86%]

...节点添加onTriggerEnter的脚本监听, 当我不更改 红色小人的 transform.rotationEuler 值时,图中黑色小牛要靠近红色小人才会触发onTriggerEnter的回调,一切运行正常.   但是当我在update里 更改红色小人的 transform.rotationEuler 值后,黑色小牛并不...

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

50. 有关Laya3D碰撞检测疑问 [ 86%]

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

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