大约有 284 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0038 秒)
Laya_社区(161) Laya2.0_文档(43) Laya_示例(41) Laya3.0_api(12) laya_api(10) Laya2.0_api(10) Laya3.0_文档(6) Laya2.0_示例(1)
... mat.rotate(Math.PI / 2); mat.translate(screenHeight / pixelRatio, 0); canvasDegree = 90; } else { mat.rotate(-Math.PI / 2); ...
来源: Laya_社区 发布时间: 20180621
...:Matrix4x4):void[static] 根据缩放计算输出矩阵 Matrix4x4 createTranslate(trans:Vector3, out:Matrix4x4):void[static] 根据平移计算输出矩阵 Matrix4x4 decomposeTransRotMatScale(translation:Vector3, rotationMatrix:Matrix4x4, scale:Vector3):Boolean 分解矩阵为平移向量、...
来源: laya_api 发布时间: 20170929
...eshSprite3D(Laya.PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1.meshRenderer.material = earthMat; })); ``` 效果如下(图3): )); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1.meshRenderer.material = earthMat; })); ``` 效果如下(图3): ; camera1.transform.translate(new Laya.Vector3(0, 0, 1.5)); camera1.normalizedViewport = new Laya.Viewport(0, 0, 0.5, 1.0); var camera2 = scene.addChild(new Laya.Camera( 0, 0.1, 100)); camera2.clearColor = new Laya.Vector4(0.0, 0.0, 1.0, 1.0); c...
来源: Laya_示例 发布时间: 20250220
...(PrimitiveMesh.createSphere(5, 32, 32))) as MeshSprite3D; earth1.transform.translate(new Vector3(10, 20, -8)); var earthMat:BlinnPhongMaterial = new BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1.meshRenderer.material = earthMat; })); ``` 效果如下(图3...
来源: Laya2.0_文档 发布时间: 20210715
...象变化的都会用到他。 在示例代码中已经用到了移动(translate),旋转(rotate)这两种变换,并且用三维向量代表x,y,z的值。两种方法都可以在参数中设置是否为局部空间移动,旋转。 ```typescript //移动摄像机 camera.transform.translate...
来源: Laya2.0_文档 发布时间: 20210715
...象变化的都会用到他。 在示例代码中已经用到了移动(translate),旋转(rotate)这两种变换,并且用三维向量代表x,y,z的值。两种方法都可以在参数中设置是否为局部空间移动,旋转。 ```typescript //移动摄像机 camera.transform.translate...
来源: Laya2.0_文档 发布时间: 20210714
...象变化的都会用到他。 在示例代码中已经用到了移动(translate),旋转(rotate)这两种变换,并且用三维向量代表x,y,z的值。两种方法都可以在参数中设置是否为局部空间移动,旋转。 ```typescript //移动摄像机 camera.transform.translate...
来源: Laya2.0_文档 发布时间: 20210715
...280, 100, 5, 30, 200); Matter.World.add(engine.world, cradle); Matter.Body.translate(cradle.bodies[0], { x: -180, y: -100 }); cradle = Matter.Composites.newtonsCradle(280, 380, 7, 20, 140); Matter.World.add(engine.world, cradle); Matter.Body.translate(cradle.bodies[0], { x: -140, y: -100 }); } funct...
来源: Laya_示例 发布时间: 20250220