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

大约有 1,708 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0071 秒)

1681. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 36%]

...._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

1682. laya.d3.core.Sprite3D [ 36%]

...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

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

...置材质 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

1684. 2D物理-仿生机器人 [ 32%]

...ceJoint3.selfAnchor = p3; distanceJoint3.otherAnchor = anchor; // 因为有旋转,localAnchor很难计算,使用绝对位置换算 distanceJoint3.frequency = frequencyHz; distanceJoint3.damping = dampingRatio; leg1.addComponentIntance(distanceJoint3); distanceJoint3.maxLength = distanceJoint3.mi...

来源: Laya2.0_示例 发布时间: 20260106

1685. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 31%]

...fff00", 5, 0, 0); // this.statue.filters = [glowFilter]; // 守护神设置旋转 this.angel.pivot(boundAngel.width/2,boundAngel.height); this.angel.rotation = -15; // 守护神设置呼吸 Laya.Tween.to(this.angel,{scaleY:0.99},900,Laya.Ease.linearInOut,Handler.create(this,this.angelTween1)); // ...

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

1686. laya.d3.core.Sprite3D [ 31%]

...Stays为false时生效。  rotation:Quaternion (default = null) — 世界旋转,worldPositionStays为false时生效。 ReturnsSprite3D — 克隆实例。 load()method  public static function load(url:String):Sprite3D 加载网格模板,注意:不缓存。 Parameters url:String — 模板地址...

来源: laya_api 发布时间: 20170929

1687. 高级应用-寻路导航 [ 31%]

....lookAt(_tarPosition, _upVector3, false); //因为资源规格,这里需要旋转180度 layaMonkey.transform.rotate(new Vector3(0, 180, 0), false, false); //调整位置 Tween.to(_finalPosition, {x: _position.x, y: _position.y, z: _position.z}, 40); moveSprite3D.transform.position = _finalPosition; ...

来源: Laya_示例 发布时间: 20260106

1688. 组件脚本的内置方法 · LayaAir3.3 · 引擎文档 · LAYABOX [ 28%]

..._level + ""; } //每帧更新时执行 onUpdate(): void { //让持续盒子旋转 (this.owner as Laya.Sprite).rotation++; } //开始碰撞时执行 onTriggerEnter(other: any): void { var owner: Laya.Sprite = this.owner as Laya.Sprite; if (other.label === "buttle") { //碰撞到子弹后,增加积...

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

1689. 实体组件系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 26%]

...中使用代码改变节点的属性了,例如,可以让Cube绕自身旋转,示例代码如下所示: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type : Laya.Sprite3D}) public cube: Laya.Sprite3D; private rotation: Laya.Vector3 = ...

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

1690. laya.d3.core.Sprite3D_API3.0 [ 25%]

...nStays为false时生效。 Default value rotation: Quaternion = null 世界旋转,worldPositionStays为false时生效。 Returns Sprite3D 克隆实例。 Static load load(url: string, complete: Handler): void Defined in laya/d3/core/Sprite3D.ts:77 加载网格模板。 Parameters url: string 模板...

来源: Laya3.0_api 发布时间: 20231115