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

大约有 1,692 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0081 秒)

181. 材质-BlinnPhong-反射贴图 [ 79%]

...s/threeDimen/staticModel/teapot/teapot-Teapot001.lm"))); teapot1.transform.position = new Laya.Vector3(-0.8, 0, 0); teapot1.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); var teapot2 = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/staticModel/teapo...

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

182. 关于2D粒子的渲染问题 [ 79%]

...看到,在下边的方法   public override function addParticleArray(position:Float32Array, velocity:Float32Array):void {   中,把所有的参数放到一个数组中:        var particleData:ParticleData = ParticleData.Create(settings, position, velocity, _currentTime);       var s...

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

183. 苹果笔记本下Safari中显示一半 [ 78%]

...tranform有关 <canvas id="layaCanvas" width="760" height="650" style="position: absolute; left: 0px; top: 110px; background-color: rgb(255, 237, 118); transform-origin: 0px 0px 0px; transform: matrix(0.5, 0, 0, 0.5, 311, 0);"></canvas> 其他电脑上: <canvas id="layaCanvas" width...

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

184. laya.d3.graphics.Vertex.VertexShuriKenParticle [ 78%]

... PARTICLE_ENDCOLOR0 : int = 7[static] VertexShuriKenParticle  PARTICLE_POSITION0 : int = 1[static] VertexShuriKenParticle  PARTICLE_RANDOM0 : int = 11[static] VertexShuriKenParticle  PARTICLE_RANDOM1 : int = 12[static] VertexShuriKenParticle  PARTICLE_SHAPEPOSITIONSTARTLIFETIME : int = 4[st...

来源: Laya2.0_api 发布时间: 20190513

185. 在Unity导出的场景中,自定义shader永远被渲染在最下面 [ 78%]

...: 5 人 1582872745用户 • 2020-02-28 16:03 问题解决了。。。gl_Position 不能直接输出。要加一个内置方法: vec4 tempPos = u_MvpMatrix * a_Position; gl_Position=remapGLPositionZ(tempPos); 1582872745用户 • 2020-02-28 16:04 其实是定点z轴位置不对。。。 白道 •...

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

186. 射线检测报错,outHitInfo.sprite3D=null; [ 78%]

...线碰撞的信息是:" + this.hit.sprite3D.name); //摄像机位置 var position:Laya.Vector3=new Laya.Vector3(this.camera.position.x, 0, this.camera.position.z); //开始绘制矢量3D精灵,类型为线型 this.phasorSprite3D.begin(Laya.WebGLContext.LINES, this.camera); //根据射线的原点...

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

187. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 78%]

...的位置,旋转和缩放。 通过代码,来做变换 //平移 this.position1.setValue(-1.5, 0, 0.0); this.sprite3d.translate(this.position1); //旋转 this.rotate1.setValue(0, 60, 0); this.sprite3d.rotate(this.rotate1, false, false); //缩放 var scale = this.sprite3d.localScale; scale.setValu...

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

188. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 78%]

... var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建刚体碰撞器 var rigidBody: Rigidbody3D = box.addComponent(Rigidbody3D); //创建盒子形状碰撞器 var boxShape: BoxColliderShape = new BoxColliderShape...

来源: Laya2.0_文档 发布时间: 20210715

189. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 78%]

... var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建刚体碰撞器 var rigidBody: Rigidbody3D = box.addComponent(Rigidbody3D); //创建盒子形状碰撞器 var boxShape: BoxColliderShape = new BoxColliderShape...

来源: Laya2.0_文档 发布时间: 20210715

190. 3D项目,,模型默认朝向的问题,,, [ 78%]

...场景里面创建出来2个,   第一个: this._mainPlayer.transform.position = new Vector3( 0,0,1 ); 第二个: this._npc.transform.position = new Vector3( 0,0,4 );   然后调用: this._npc.transform.lookAt( this._mainPlayer.transform.position,new Laya.Vector3(0,1,0) ); 发现 第二个...

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