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

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

21. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...动插值参数值 public camDepthSmooth: number = 20 public curpos: Laya.Vector3; private delatpos: Laya.Vector3; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即...

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

22. 3D概念入门 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...擎中,针对2维、3维、4维向量的封装方法示例分别为: Vector2(1, 2) 、Vector3(1, 1, 3)、Vector4(1, 2, 3, 0.5) 。然而LayaAir引擎封装的Vector方法,不仅可以作为向量的使用,还可以用于顶点坐标位置,或者表达颜色的时候使用。比如原点坐...

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

23. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

... colorIndex); } } private _getRandomPosition(positionRanvge: number): Laya.Vector3 { let getRangeRandom = () => { return (Math.random() - 0.5) * positionRanvge; } return new Laya.Vector3(getRangeRandom(), 0.3, getRangeRandom()); } } shader代码如下: Shader3D Start { type:Shader3D name:PBRCol...

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

24. 自定义3D Shader · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...这些属性,并将它们保存在一些常见的数据结构中,例如Vector,这样是很好的,因为我们可以修改他们的数值,从而产生令人兴奋的效果。 下图2-1展示的是顶点、多边形、边缘的可视化三种形态, (图2-1) 接下来单独介绍Mesh...

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

25. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...移速度越快。 (动图1-2) angulaVelocity属性的值是3维向量Vector3类型值,Bullet使用欧拉角来描述物体的旋转,3D向量的每个分量代表绕x、y、z轴旋转的速度,单位是弧度/秒。动图1-2,就是在x轴分别设置了3.14与31.4的对比效果。 angul...

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

26. laya.d3.core.particleShuriKen.ShuriKenParticle3D [ 37%]

...型索引获得组件。 Sprite3D getComponentsByType(type:*, components:Vector.<Component3D>):void 通过指定类型获得所有组件。 Sprite3D getProjectionViewWorldMatrix(projectionViewMatrix:Matrix4x4):Matrix4x4 获取投影视图世界矩阵。 Sprite3D hasListener(type:String):Boo...

来源: laya_api 发布时间: 20170929

27. 组件装饰器说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...型 装饰器属性标识的类型支持引擎对象类型(例如:Laya.Vector3、Laya.Sprite3D、Laya.Camera等)、自定义的对象类型(需要标记@regClass())、以及TS语言的基本类型。 2.5.1 引擎对象类型 引擎对象类型的理解比较简单,暴露组件属性之...

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

28. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 35%]

...riginal: Sprite3D, parent?: Node, worldPositionStays?: boolean, position?: Vector3, rotation?: Quaternion): Sprite3D Inherited from PixelLineSprite3D.instantiate Defined in laya/d3/core/Sprite3D.ts:57 创建精灵的克隆实例。 Parameters original: Sprite3D 原始精灵。 Default value parent: ...

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

29. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 33%]

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

30. laya.d3.core.MeshSprite3D_API3.0 [ 31%]

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