大约有 147 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)
...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
...unctionname); function functionname() { camera.viewport.project(warehouse1.transform.position, camera.projectionViewMatrix, _outPos); 2dname.pos(_outPos.x / Laya.stage.clientScaleX, _outPos.y / Laya.stage.clientScaleY); } bing8310124 • 2018-01-03 10:35 那如果我想图片也是近大远小的话...
来源: Laya_社区 发布时间: 20180102
...万向锁的问题(不知道是不是我理解错了)。 3.想参考 transform.rotate()转化为四元素Quaternion来实现,可是Quaternion的属性是只读的,没有set方法,也没办法做缓动。 2017-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20170829
...-03-23 0 3 分享 微博 QZONE 微信 hejianchun 赞同来自: this.camera.transform.position=....就行 2018-03-23 0 1 分享 微博 QZONE 微信 qian 赞同来自: https://ask.layabox.com/question/10611 试试这个 2018-03-23 0 0 分享 微博 QZONE 微信 别抢我可乐 赞同来自: 这是...
来源: Laya_社区 发布时间: 20180323
...Game Object ![Game Object](./img/GameObject.png) - name - Static - Layer - Transform 1. Position 2. Rotation 3. Scale - Component - Camera ![Camera](./img/components/InspectorCamera35.png) 1. Clear Flags - Skybox - Solid Color - Depth only - Don't Clear 2. Background 3. Projection - perspective - Fi...
来源: Laya2.0_文档 发布时间: 20200822
... 2020-04-08 10:23 就是简单的 camera.viewport.project(this._ownerView.transform.position, camera.projectionViewMatrix, this._outPos); let tx: number = this._outPos.x / Laya.stage.clientScaleX; let ty: number = this._outPos.y / Laya.stage.clientScaleY; 在相机视野外比较远的对象 转换...
来源: Laya_社区 发布时间: 20190809
...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
...nction(mesh){ teapot = scene.addChild(new Laya.MeshSprite3D(mesh)); teapot.transform.position = new Laya.Vector3(0, 1.75, 2); teapot.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); })); //加载纹理 Laya.Texture2D.load("res/threeDimen/pbr/jinshu.jpg", Laya.Handler.create(null, functio...
来源: Laya2.0_文档 发布时间: 20210715
...ction(mesh) { teapot = scene.addChild(new Laya.MeshSprite3D(mesh)); teapot.transform.position = new Laya.Vector3(0, 1.75, 2); teapot.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); })); //实例PBR材质 var pbrMat = new Laya.PBRStandardMaterial(); //开启该材质的反射 pbrMat.enab...
来源: Laya2.0_文档 发布时间: 20210715
... { teapot = scene.addChild(new MeshSprite3D(mesh)) as MeshSprite3D; teapot.transform.position = new Vector3(0, 1.75, 2); teapot.transform.rotate(new Vector3(-90, 0, 0), false, false); })); //实例PBR材质 var pbrMat:PBRStandardMaterial = new PBRStandardMaterial(); //开启该材质的反射 pbrMat...
来源: Laya2.0_文档 发布时间: 20210715