大约有 6 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0021 秒)
# LayaAir3D中的Transform变换 在前面讲过了LayaAir3D中的坐标系和几个基础数学工具,在示例代码中,transform是一个变换对象([Transform3D](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.core.Transform3D)API),他在3D的...
来源: Laya2.0_文档 发布时间: 20210715
# LayaAir3D中的Transform变换 在前面讲过了LayaAir3D中的坐标系和几个基础数学工具,在示例代码中,transform是一个变换对象([Transform3D](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.core.Transform3D)API),他在3D的...
来源: Laya2.0_文档 发布时间: 20210714
# LayaAir3D中的Transform变换 在前面讲过了LayaAir3D中的坐标系和几个基础数学工具,在示例代码中,transform是一个变换对象([Transform3D](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.core.Transform3D)API),他在3D的...
来源: Laya2.0_文档 发布时间: 20210715
... spotLight.color = new Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Vector3(0.0, 1.2, 0.0); //设置聚光灯的方向 var mat:Matrix4x4 = spotLight.transform.worldMatrix; mat.setForward(new Vector3(0.15, -1.0, 0.0)); directionLight.transform.worldMatrix=mat; //设置...
来源: Laya2.0_文档 发布时间: 20210715
...r3(1, 1, 1); //设置平行光的方向 var mat:Matrix4x4 = directionLight.transform.worldMatrix; mat.setForward(new Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; ``` **setForward** 平行光的方向,分别代表x、y、z轴上的方向,负数为负轴,正数为正...
来源: Laya2.0_文档 发布时间: 20210715
...配模式规则,计算出适配宽高需要缩放的比例,然后通过transform的matrix(矩阵)来对画布缩放至逻辑分辨率范围内,再通过viewport与DPR机制缩放还原。 > 此处的适配设计原理,视频中会展开讲,本文最后会有视频链接 基于以上种...
来源: Laya2.0_文档 发布时间: 20210715