大约有 9 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0044 秒)
...d(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/three...
来源: Laya2.0_文档 发布时间: 20210714
...d(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new Laya.MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/...
来源: Laya2.0_文档 发布时间: 20210715
...d(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new Laya.MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/...
来源: Laya2.0_文档 发布时间: 20210715
...d(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/three...
来源: Laya2.0_文档 发布时间: 20210715
...d(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new Laya.MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/...
来源: Laya2.0_文档 发布时间: 20210715
...d(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/three...
来源: Laya2.0_文档 发布时间: 20210715
...ite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.createSphere(0.1), new Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; ``` 然后来看下效果。 ![](img/1.png)(图1)
来源: Laya2.0_文档 发布时间: 20210715
...[1-2](img/1-2.gif) (动图1-2) angulaVelocity属性的值是3维向量`Vector3`类型值,Bullet使用欧拉角来描述物体的旋转,3D向量的每个分量代表绕x、y、z轴旋转的速度,单位是**弧度/秒**。动图1-2,就是在x轴分别设置了3.14与31.4的对比效果。...
来源: Laya2.0_文档 发布时间: 20210715
...nkey2 = _Scene3D.addChild(sp); layaMonkey2.transform.localScale = new Laya.Vector3(4, 4, 4); layaMonkey2.transform.translate(new Laya.Vector3(-20, 13, 0)); //获取动画组件 var xxAni = layaMonkey2.getChildAt(0).getComponent(Laya.Animator); //获取动画资源对象 var xxClip = Laya.Loader.getR...
来源: Laya2.0_文档 发布时间: 20210714