大约有 732 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0045 秒)
Laya_社区(334) Laya3.0_api(99) Laya2.0_api(82) laya_api(76) Laya2.0_文档(63) Laya_示例(46) Laya3.0_文档(20) Laya2.0_示例(12)
...tion=new Laya.Vector3(-8, 4, 15); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3( -8, -25, 0), true, false); })) } return Main; } ()); Main(); laya2.0的3d尝试,新人,看不懂这是为啥,错误如下: laya.d3.js:15290 Uncaught TypeError: Cannot read property 'props' ...
来源: Laya_社区 发布时间: 20180919
...Camera; camera.transform.position = new Vector3(0, 3, 3); camera.transform.rotate(new Vector3( -45, 0, 0), true, false); camera.addComponent(CameraMoveScript); // 生成平面,其实是一个box,只不过高度很小,可看成一个平面 var plane = scene.addChild(new MeshSprite3D(new BoxMesh...
来源: Laya_社区 发布时间: 20170314
...aya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { materi...
来源: Laya_社区 发布时间: 20190717
...eObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolean ignoreNullChild) LayaExport...
来源: Laya_社区 发布时间: 20171108
...sform.translate(new Laya.Vector3(0, 1.5, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLig...
来源: Laya_社区 发布时间: 20180725
...述也太少了吧。 有刚体的情况isKinematic=true就可以直接改rotation了 或者用力的情况applyTorque也可以啊 2019-01-11 0 0 分享 微博 QZONE 微信 叶子 赞同来自: 。。抱歉。有点着急,没说好。 就是人物在空中的时候需要进行旋转,如果设置...
来源: Laya_社区 发布时间: 20190111
...); camera.transform.translate(new Laya.Vector3(0, 3, 5)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var directionLight = new Laya.DirectionLight(); this.scene.addChild(directionLight); //设置灯光方向 var mat = directionLight.transform.worldMatrix; mat.setForward(new L...
来源: Laya_社区 发布时间: 20191209
...eObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolean ignoreNullChild) LayaExport...
来源: Laya_社区 发布时间: 20180319
...相对旋转,相对位移,以及缩放。 this.pangzi.transform.localRotation = this._rotation; this.pangzi.transform.localPosition = this._position; this.pangzi.transform.localScale = this._scale; ``` 点击事件中的部分挂点的移除代码: ```typescript //将role从龙2的节点上移...
来源: Laya2.0_文档 发布时间: 20210715
...相对旋转,相对位移,以及缩放。 this.pangzi.transform.localRotation = this._rotation; this.pangzi.transform.localPosition = this._position; this.pangzi.transform.localScale = this._scale; ``` 点击事件中的部分挂点的移除代码: ```typescript //将role从龙2的节点上移...
来源: Laya2.0_文档 发布时间: 20210714