大约有 12 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0035 秒)
....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
...RotationZ); this.tempRotationZ.cloneTo(this.camera.transform.localRotation); this.camera.transform.localRotation = this.camera.transform.localRotation; } } /** * @inheritDoc */...
来源: Laya_社区 发布时间: 20200707
...s3D.convert3DCoordTo2DScreenCoord(translate, convertTranslate); this.owner.transform.localPosition = convertTranslate; } } }()); 2016-11-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 你...
来源: Laya_社区 发布时间: 20161126
...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
...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
...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
...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
...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
...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
...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