大约有 62 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0033 秒)
...y/LayaMonkey.lh") as Laya.Sprite3D; scene.addChild(layaMonkey); layaMonkey.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); layaMonkey.transform.localPosition = new Laya.Vector3(0,1,0); layaMonkey.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); //移动模型 Laya.Tween.to(layaMonkey,...
来源: Laya_社区 发布时间: 20180112
... var instance = new Laya.MeshSprite3D(new Laya.BoxMesh(x, y, z)); instance.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); instance.transform.position = new Laya.Vector3(posX, posY, posZ); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load(textureUrl...
来源: Laya_社区 发布时间: 20180402
...= scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 0.1, 1))); box0.transform.position=new Laya.Vector3(1,0,0); var box1= scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 0.1, 1))); box1.transform.position=new Laya.Vector3(-1,0,0); 建立了2快板,显示如下: 我建了box0和...
来源: Laya_社区 发布时间: 20181214
...接 提交 1 个回复 zszen 赞同来自: 我自己来 box.potOld = box.transform.position;Laya.Tween.to(box.potOld,{ x:1 ,y:2 ,update:new Laya.Handler(box,function(){ this.transform.position = this.potOld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,La...
来源: Laya_社区 发布时间: 20180112
...addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, 30)); //方向光 const directionLight =this.newScene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = ne...
来源: Laya_社区 发布时间: 20210103
...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
...void{ index++; if (index % 3 === 1 ){ //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.position, _up); } else if (index % 3 === 2){ //摄像机捕捉模型目标 camera.transform.lookAt(cylinder.transform.position, _up); } else{ //摄像机捕捉模型目标 camera.transform.lookA...
来源: Laya2.0_文档 发布时间: 20210714
...x++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.cylinder.transform.position, this._up); } else{ //摄像机捕捉模...
来源: Laya2.0_文档 发布时间: 20210715
...x++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.cylinder.transform.position, this._up); } else{ //摄像机捕捉模...
来源: Laya2.0_文档 发布时间: 20210715
...xHeight); var box = this.parent.addChild(new Laya.MeshSprite3D(mesh)); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.position = new Laya.Vector3(ConstValue.boxOutScreen,ConstValue.boxHeight/2,0); var material = new Laya.StandardMaterial(); material.albedo = new Laya.V...
来源: Laya_社区 发布时间: 20180113