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

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

1. 3D变换 · LayaAir3.0文档 · LAYABOX [ 100%]

...late(translation: Vector3, isLocal: boolean = true): void { if (isLocal) { Matrix4x4.createFromQuaternion(this.localRotation, Transform3D._tempMatrix0); Vector3.transformCoordinate(translation, Transform3D._tempMatrix0, Transform3D._tempVector30); Vector3.add(this.localPosition, Transform3D._tempVec...

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

2. 自定义Shader · LayaAir3.0文档 · LAYABOX [ 74%]

...类型:Texture2D,Color,Vector2,Vector3,Vector4,Bool,Float,Matrix4x4,TextureCube Texture2D用于2D纹理采样的图片类型,图片本地支持格式:JPG,PNG Color 颜色类型,为四个Float类型组成的向量值,单位为0-1范围的RGB值变量 Vector2 向量2类型...

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

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

...orm3D = destSprite3D.transform; if (worldPositionStays) { var worldMatrix: Matrix4x4 = transform.worldMatrix; original.transform.worldMatrix.cloneTo(worldMatrix); transform.worldMatrix = worldMatrix; } else { (position) && (transform.position = position); (rotation) && (transform.rot...

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

4. 3D概念入门 · LayaAir3.0文档 · LAYABOX [ 48%]

...LayaAir引擎提供了3×3的旋转矩阵Matrix3x3() 和4×4的变换矩阵Matrix4x4(),变换矩阵可用于平移、旋转、缩放计算。 10.3 欧拉角、四元数 欧拉角与四元数都是用于旋转计算的数学方法,刚刚介绍的矩阵明明也可以用于旋转计算,为什么...

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