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

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

141. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 70%]

... let camera = new Laya.Camera(0, 0.1, 100); scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);  let directionLight = new Laya.DirectionLight(); scene.addChild(directionLight); let mat = directionLight.tra...

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

142. 对象池3D问题 [ 70%]

...oad("fish/denglongyu/layaScene.lh"); scene.addChild(layaMonkey) layaMonkey.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); layaMonkey.transform.position = new Laya.Vector3(0, 0.5,0); // layaMonkey.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)) //漫反射贴图 var tietu=layaMonkey.getC...

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

143. PixelLineSprite3D 绘制线段问题 [ 69%]

...存在一个目标OBJ, 首先获得目标的坐标this.objPoint3D= OBJ.transform.position2. 从摄像机(透视)构造一条射线(参考官方3D鼠标点击案例),来得到一个鼠标点击坐标this.originRay = new Laya.Ray(this.sceneCamera.transform.position, new Laya.Vector3(0, 0, ...

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

144. camera坐标问题的疑问 [ 69%]

camera坐标问题的疑问 camera.transform.position=new Vector3(0,3,10);//图片中的A点 camera.transform.rotate(new Vector3(-17,0,0),true,false);//图上的B点 但是效果竟然把三D模型放在舞台的正中间,这个坐标实在是不明白怎么来的, https://ldc.layabox.com/doc/?...

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

145. 正交相机要怎么控制啊,坐标什么的全部懵!看了这个官方示例表示不懂,为什么还要转化为2D坐标? [ 69%]

...ene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); //-30改为-90 camera.transform.translate(new Laya.Vector3(0, 0.5, 0)); //(0,0.5,500)改为(0, 0.5, 0) camera.orthographicProjection = true; var directionLight ...

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

146. timer无法执行 [ 69%]

...D(Laya.PrimitiveMesh.createSphere(1)); this.scene1.addChild(ball);   ball.transform.position = new Laya.Vector3((Math.random() - 0.5) * 2, 10, 17); //添加刚体   ball.addComponent(Laya.PhysicsCollider); let ballrigid: Laya.Rigidbody3D = ball.addComponent(Laya.Rigidbody3D); ballrigid.colliderSha...

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

147. [layaair 1.0] 如何支持Unity的含有第二套UV的shader [ 69%]

...ert (appdata v) { v2f o; o.vertex = UnityObjectToClipPos(v.vertex); o.uv = TRANSFORM_TEX(v.uv, _MainTex); o.uv2 = TRANSFORM_TEX(v.uv2, _MainTex); UNITY_TRANSFER_FOG(o,o.vertex); return o; }   fixed4 frag (v2f i) : SV_Target { // sample the texture fixed4 col1 = tex2D(_MainTex, i.uv); fixed4 col2 = ...

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

148. 为什么导入的3D模型不能重新设置位置 [ 69%]

... this.fish = Laya.Sprite3D.load("Unity/" + fishName + "/yu.lh"); this.fish.transform.position = new Laya.Vector3(20, -10, 0); 2018-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Xq 赞同来自: 用tran...

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

149. 释放资源报错 [ 69%]

...  if (this._cacheRootBone){             this._cacheRootBone.transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._boundChange); 这里的this._cacheRootBone非空,但是上面transform是空的   这个精灵是 SkinnedMeshRenderer绑定的RootBone的...

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

150. 关于3D物件半透明漫反射率(官网上的例子)的BUG。 [ 68%]

...addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera;         camera.transform.translate(new Laya.Vector3(0, 0, 6));         camera.clearColor = null;         //材质         var material = new Laya.StandardMaterial();         material.diffuseTexture = Laya.Texture2D.load("Ass...

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