大约有 1,663 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0063 秒)
Laya_社区(1441) Laya2.0_文档(88) Laya3.0_api(87) Laya3.0_文档(27) Laya2.0_api(6) laya_api(6) Laya_示例(4) Laya2.0_示例(4)
...为每个子对象添加原型碰撞器。这就允许你简单地移动、旋转或者伸缩每个子碰撞器,他们是各自独立的。 下面的代码来自于官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Physics3D&name=PhysicsWorld_CompoundC...
来源: Laya2.0_文档 发布时间: 20210714
...n(in float rot,in float age)\n{ \n float rotation =rot * age;\n //计算2x2旋转矩阵.\n float c = cos(rotation);\n float s = sin(rotation);\n return mat2(c, -s, s, c);\n}\n\nvec4 ComputeParticleColor(in vec4 startColor,in vec4 endColor,in float normalizedAge)\n{\n vec4 color=mix(startColor,e...
来源: Laya_社区 发布时间: 20171109
...为每个子对象添加原型碰撞器。这就允许你简单地移动、旋转或者伸缩每个子碰撞器,他们是各自独立的。 下面的代码来自于官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Physics3D&name=PhysicsWorld_CompoundC...
来源: Laya2.0_文档 发布时间: 20210714
...置材质 layaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ```  ### 2. stateMap 在 `subShader` 添加通道时,除了顶点着色器与片段着色器之外...
来源: Laya2.0_文档 发布时间: 20210715
...置材质 layaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ```  ### 2. stateMap 在 `subShader` 添加通道时,除了顶点着色器与片段着色器之外...
来源: Laya2.0_文档 发布时间: 20210715
...子节点会受到父节点的影响,例如父节点改变了位置,或旋转了角度,子节点也会同步产生变化。 3D节点的根节点是Scene3D,2D节点的根节点是Scene2D。2D与3D节点之间不可以混合形成父子层级关系。 二、层级面板的通用操作 2.1 创...
来源: Laya3.0_文档 发布时间: 20250103
...._tarPosition, this._upVector3, false); //因为资源规格,这里需要旋转180度 this.layaMonkey.transform.rotate(this._rotation2, false, false); //调整位置 Tween.to(this._finalPosition, { x: this._position.x, y: this._position.y, z: this._position.z }, 40); this.moveSprite3D.transform.po...
来源: Laya3.0_文档 发布时间: 20230303
...Stays为false时生效。 rotation:Quaternion (default = null) — 世界旋转,worldPositionStays为false时生效。 ReturnsSprite3D — 克隆实例。 load()method public static function load(url:String, complete:Handler):void 加载网格模板。 Parameters url:String — 模板地址。 ...
来源: Laya2.0_api 发布时间: 20190513
...置材质 layaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ```  ### 2. stateMap 在 `subShader` 添加通道时,除了顶点着色器与片段着色器之外...
来源: Laya2.0_文档 发布时间: 20210714
...ceJoint3.selfAnchor = p3; distanceJoint3.otherAnchor = anchor; // 因为有旋转,localAnchor很难计算,使用绝对位置换算 distanceJoint3.frequency = frequencyHz; distanceJoint3.damping = dampingRatio; leg1.addComponentIntance(distanceJoint3); distanceJoint3.maxLength = distanceJoint3.mi...
来源: Laya2.0_示例 发布时间: 20250226