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

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

201. matter刚体穿越 [ 53%]

...),改变刚体位置我使用的是matter里的setPosition,或者用translate应该也可以(这个没用过,不知道会不会出现这种情况),还有就是我要根据刚体的速度,只要不为0就执行刚体自旋转动画,也会因为引擎设置不可睡眠受到影响(...

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

202. 加载不了模型 [ 53%]

...ne.addChild(new Laya.Camera(0, 0.1, 10000)));         camera.transform.translate(new Laya.Vector3(0, 5, 5));         camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);         camera.clearColor = Laya.Vector3(255,255,0.1);         camera.addComponent(CameraMoveScript)...

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

203. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 53%]

...ra = (scene.addChild(new Camera(0, 0.1, 100))) as Camera; camera.transform.translate(new Vector3(0, 3, 3)); camera.transform.rotate(new Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color...

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

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

...("destroy"); this.owner.destroy(); }); } onUpdate() { this.owner.transform.translate(new Laya.Vector3(0, 0, -0.1)); } 2019-03-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Sོ 赞同来自: 同问, 求解...

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

205. 3D加载不了 [ 53%]

...ne.addChild(new Laya.Camera(0, 0.1, 10000)));         camera.transform.translate(new Laya.Vector3(0, 5, 5));         camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);         camera.clearColor = Laya.Vector3(255,255,0.1);         camera.addComponent(CameraMoveScript)...

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

206. 正交摄像机裁剪问题 [ 53%]

... camera = (scene.addChild(new Laya.Camera(0, 0.1, 550))); camera.transform.translate(new Laya.Vector3(250, 1, 0)); var rotation = new Laya.Quaternion; Laya.Quaternion.lookAt(camera.position, new Laya.Vector3(0, 0, 0), camera.up, rotation); camera.transform.rotation = rotation; camera.clearColor = ne...

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

207. IDE创建3D示例项目(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 53%]

...e.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionL...

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

208. 请问一下,怎么将下面这段AS3代码翻译成LayaAir的API [ 53%]

...Sprite(); var matrix:Matrix=new Matrix(); matrix.rotate(Math.PI/4); matrix.translate(150,100); sp.graphics.drawTexture(texture,0,0,texture.width,texture.height,matrix); sp.graphics.drawRect(100,50,200,90,'#000000'); Laya.stage.addChild(sp); } } } 2017-04-14 0 0 分享 微博 QZONE 微信 为什么...

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

209. 一个3D正方体模型,想给它六个面贴不同的贴图,该如何处理? [ 52%]

....transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.translate(new Laya.Vector3(10, 10, 10)); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; 贴图只能选一张吗? 2018-02-27...

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

210. 射线BUG [ 52%]

...amera = this.addChild(new Laya.Camera(0, 0.1, 100)); this.camera.transform.translate(new Laya.Vector3(0, 1, 3)); //camera.addComponent(CameraMoveScript); this.camera.clearColor = null; } Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); MousePickingScene.prototype.lateRender = function...

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