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

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

1. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 100%]

....onTriggerStay = function (other) { this.tsizex = this.box._components[0]._transformOrientedBoundBox.extents.x; this.tsizez = this.box._components[0]._transformOrientedBoundBox.extents.z; this.osizex = other._transformOrientedBoundBox.extents.x; this.osizez = other._transformOrientedBoundBox.extents...

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

2. 2.0版本可用的CameraMoveScript.ts [ 91%]

...RotationZ);             this.tempRotationZ.cloneTo(this.camera.transform.localRotation);             this.camera.transform.localRotation = this.camera.transform.localRotation;         }     }          /**          * @inheritDoc          */...

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

3. 关于3d项目中component的问题 [ 89%]

...s3D.convert3DCoordTo2DScreenCoord(translate, convertTranslate); this.owner.transform.localPosition = convertTranslate; } } }()); 2016-11-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 你...

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

4. rigidBody.applyForce 物体不会移动 [ 89%]

...ildByName( "Monster1" ) as Laya.Sprite3D; scene.addChild(Monster); Monster.transform.translate( new Laya.Vector3(monster_position_x, 0, monster_position_z) ); this.monster_character = Monster; // this.master_turn(); //添加自定义模型 var box: Laya.MeshSprite3D = this.scene.addChild( new Laya.M...

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

5. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 83%]

...me = "camera";         //相机平移位置         camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5));         //旋转相机         camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);                      //创建平行光 ...

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

6. 加载.lh文件 运行后黑屏 无法显示 [ 81%]

...his.scene.ambientColor = new Laya.Vector3(1, 1, 1);         camera.transform.translate(new Laya.Vector3(0,0.8,1.5));         camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false);     //  var camera:Laya.Camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100)) as...

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

7. 挂载物体的3D变换问题 [ 76%]

...8); var cylinder3D:MeshSprite3D=new MeshSprite3D(cylinderMesh); cylinder3D.transform.translate(new Vector3(3,0,0),true); cylinder3D.transform.localScale = new Vector3(2,2,2); cylinder3D.transform.localRotationEuler = new Vector3(90,90,90); role.getChildAt(0).addChild(cylinder3D); this.ani.linkSprite...

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

8. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 75%]

...er.getChildByName("girl1") as Laya.Sprite3D; //模型缩放 this.roleModel.transform.localScale = new Laya.Vector3(0.8,0.8,0.8); //获取角色动画组件 this.roleAni = this.roleModel.getComponentByType(Laya.Animator) as Laya.Animator; //动画完成事件监听 this.roleAni.on(Laya.Event.COMPLETE...

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

9. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 74%]

...me = "camera";         //相机平移位置         camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5));         //旋转相机         camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);                      //创建平行光 ...

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

10. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” [ 72%]

...rShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” 发射时生成子弹: onFire() { if (this.isFire) { Laya.Mesh.load("fly2/fly3-bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bull...

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