大约有 1,716 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0092 秒)
Laya_社区(1483) Laya2.0_文档(88) Laya3.0_api(87) Laya3.0_文档(38) Laya2.0_api(6) laya_api(6) Laya_示例(4) Laya2.0_示例(4)
...ceJoint3.selfAnchor = p3; distanceJoint3.otherAnchor = anchor; // 因为有旋转,localAnchor很难计算,使用绝对位置换算 distanceJoint3.frequency = frequencyHz; distanceJoint3.damping = dampingRatio; leg1.addComponentIntance(distanceJoint3); distanceJoint3.maxLength = distanceJoint3.mi...
来源: Laya2.0_示例 发布时间: 20260303
...使用这个特性。 启用面向相机后,无论相机如何移动或旋转,Spine3D动画都会自动调整朝向,保持面向相机。效果如图2-3所示。 (动图2-3) 2.7 预乘Alpha premultipliedAlpha 通常情况下,LayaAir引擎会读取Spine动画与IDE中的'预乘Alpha'设...
来源: Laya3.0_文档 发布时间: 20260203
...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
...Stays为false时生效。 rotation:Quaternion (default = null) — 世界旋转,worldPositionStays为false时生效。 ReturnsSprite3D — 克隆实例。 load()method public static function load(url:String):Sprite3D 加载网格模板,注意:不缓存。 Parameters url:String — 模板地址...
来源: laya_api 发布时间: 20170929
....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_示例 发布时间: 20260303
..._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
...中使用代码改变节点的属性了,例如,可以让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
...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
...设置Layer Position(位置) 支持(包括:X、Y、Z) Rotation(旋转) 支持(包括:X、Y、Z) Scale(缩放) 支持(包括:X、Y、Z) 对比上面的图和表格,我们看到Tag是不支持的。Static与Layer是部分支持。后续将不再提醒,关注表格中...
来源: Laya3.0_文档 发布时间: 20251010
...nStays为false时生效。 Default value rotation: Quaternion = null 世界旋转,worldPositionStays为false时生效。 Returns Sprite3D 克隆实例。 Static load load(url: string, complete: Handler): void Inherited from PixelLineSprite3D.load Defined in laya/d3/core/Sprite3D.ts:77 加载网格...
来源: Laya3.0_api 发布时间: 20231102