大约有 151 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
Laya_社区(40) Laya3.0_api(38) Laya2.0_文档(28) Laya2.0_api(17) laya_api(13) Laya3.0_文档(13) Laya_示例(2)
... type : Laya.Sprite3D}) public cube: Laya.Sprite3D; private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图4-4所示: (动图4-4) 4.1.3 3D节点的进阶使用 @...
来源: Laya3.0_文档 发布时间: 20251010
...number Returns void shadowFourCascadeSplits get shadowFourCascadeSplits(): Vector3 set shadowFourCascadeSplits(value: Vector3): void Defined in laya/d3/core/light/DirectionLight.ts:42 四级级联阴影分割比例,X、Y、Z依次为其分割比例,Z必须大于Y,Y必须大于X。 Returns Vector3 De...
来源: Laya3.0_api 发布时间: 20231115
...e, Nav2DAgent); } onMouseClick(evt: Laya.Event): void { let pos = new Laya.Vector2(evt.stageX, evt.stageY); console.log("click", pos); this._temp.graphics.clear(); this._allAgent.forEach((agent) => { agent.destination = pos; let paths = agent.getCurrentPath(); if (paths.length >= 2) { let poin...
来源: Laya3.0_文档 发布时间: 20251010
...ted from Node._extra Defined in laya/display/Node.ts:56 _forward _forward: Vector3 = new Vector3() Defined in laya/d3/core/BaseCamera.ts:174 前向量 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _up _up: Vector3 = new Vector3() Defined in laya/d3/core/BaseCamer...
来源: Laya3.0_api 发布时间: 20231115
...riginal: Sprite3D, parent?: Node, worldPositionStays?: boolean, position?: Vector3, rotation?: Quaternion): Sprite3D Inherited from RenderableSprite3D.instantiate Defined in laya/d3/core/Sprite3D.ts:57 创建精灵的克隆实例。 Parameters original: Sprite3D 原始精灵。 Default value parent:...
来源: Laya3.0_api 发布时间: 20231115
...riginal: Sprite3D, parent?: Node, worldPositionStays?: boolean, position?: Vector3, rotation?: Quaternion): Sprite3D Inherited from RenderableSprite3D.instantiate Defined in laya/d3/core/Sprite3D.ts:57 创建精灵的克隆实例。 Parameters original: Sprite3D 原始精灵。 Default value parent:...
来源: Laya3.0_api 发布时间: 20231115
...riginal: Sprite3D, parent?: Node, worldPositionStays?: boolean, position?: Vector3, rotation?: Quaternion): Sprite3D Inherited from RenderableSprite3D.instantiate Defined in laya/d3/core/Sprite3D.ts:57 创建精灵的克隆实例。 Parameters original: Sprite3D 原始精灵。 Default value parent:...
来源: Laya3.0_api 发布时间: 20231115
...述刚体绕某一轴旋转速度的物理属性,由一个三维向量(Vector3)表示,分别对应刚体围绕X、Y、Z 轴的旋转速率分量,该分量值既有大小又有方向。单位是弧度/秒。 简单来说,角速度衡量的是 3D 刚体绕某一旋转轴转动的快慢和...
来源: Laya3.0_文档 发布时间: 20251010
...群(Light Clustering)技术的三维空间划分。该配置是一个 Vector3 类型的值,默认设置为 (12, 12, 12),分别代表 X、Y、Z 三个轴向的聚类数量。 在光照集群系统中,相机视锥体空间被划分为一个三维网格:X 和 Y 轴将视口均匀划分为...
来源: Laya3.0_文档 发布时间: 20251231
...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