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

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

71. 物理系统之ConfigurableConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 53%]

...r boxB:MeshSprite3D = this.addRigidBodyBox(new Vector3(10, 0, 0),1); (boxB.meshRenderer.material).albedoColor = new Vector4(1, 0, 0, 1); var boxBRigid:Rigidbody3D = boxB.getComponent(Rigidbody3D); //创建约束 var configurableConstraint:ConfigurableConstraint = boxA.addComponent(ConfigurableConstr...

来源: Laya2.0_文档 发布时间: 20210715

72. 物理系统之ConfigurableConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 53%]

...r boxB:MeshSprite3D = this.addRigidBodyBox(new Vector3(10, 0, 0),1); (boxB.meshRenderer.material).albedoColor = new Vector4(1, 0, 0, 1); var boxBRigid:Rigidbody3D = boxB.getComponent(Rigidbody3D); //创建约束 var configurableConstraint:ConfigurableJoint = boxA.addComponent(ConfigurableConstraint)...

来源: Laya2.0_文档 发布时间: 20210714

73. 物理系统之ConfigurableConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 52%]

...r boxB:MeshSprite3D = this.addRigidBodyBox(new Vector3(10, 0, 0),1); (boxB.meshRenderer.material as BlinnPhongMaterial).albedoColor = new Vector4(1, 0, 0, 1); var boxBRigid:Rigidbody3D = boxB.getComponent(Rigidbody3D); //创建约束 var configurableConstraint:ConfigurableJoint = boxA.addComponent(C...

来源: Laya2.0_文档 发布时间: 20210715

74. timer无法执行 [ 52%]

...abox; })); //ball1mat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); ball1.meshRenderer.material = ball1mat; //添加刚体 ball1.addComponent(Laya.PhysicsCollider); let ballrigid1: Laya.Rigidbody3D = ball1.addComponent(Laya.Rigidbody3D); ballrigid1.colliderShape = new Laya.SphereColliderShape(1); b...

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

75. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 50%]

...) { customMaterial.albedoTexture = texture; })); //设置材质 layaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ``` ![](img/1.gif) ### 2. stateMap 在 `subShader` 添加通...

来源: Laya2.0_文档 发布时间: 20210715

76. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 49%]

...) { customMaterial.albedoTexture = texture; })); //设置材质 layaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ``` ![](img/1.gif) ### 2. stateMap 在 `subShader` 添加通...

来源: Laya2.0_文档 发布时间: 20210715

77. rigidBody.applyForce 物体不会移动 [ 47%]

..., function (tex: Laya.Texture2D) { material.albedoTexture = tex; }) ); box.meshRenderer.material = material; //设置文本显示框位置 this.text.x = Laya.stage.width / 2 - 50; //显示文本显示框 this.text = new Laya.Text(); this.text.overflow = Laya.Text.HIDDEN; this.text.color = "#FFFFFF";...

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

78. ShaderPass介绍(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 47%]

...) { customMaterial.albedoTexture = texture; })); //设置材质 layaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ``` ![](img/1.gif) ### 2. stateMap 在 `subShader` 添加通...

来源: Laya2.0_文档 发布时间: 20210714

79. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 41%]

...ffset.setValue(2, 2, 0, 0); // mater.tilingOffset = tilingOffset; this.box.meshRenderer.material =mater; } } 附件 : --> Texture2dTest.zip 2022-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Yan 赞同...

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

80. 多种碰撞器形状(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 35%]

...sh.createCone(raidius, height)); scene.addChild(cone); //设置材质 cone.meshRenderer.material = mat4; //设置位置 cone.transform.position = new Laya.Vector3(Math.random() * 4 - 2, 10, Math.random() * 4 - 2); var rigidBody = cone.addComponent(Laya.Rigidbody3D); //创建球型碰撞器 var coneS...

来源: Laya2.0_文档 发布时间: 20210715