大约有 336 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0051 秒)
Laya_社区(177) Laya2.0_文档(60) Laya3.0_api(24) Laya_示例(21) Laya2.0_api(20) laya_api(19) Laya3.0_文档(15)
... camera:Camera=(scene.addChild(new Camera(0, 0.1, 100))) as Camera; camera.transform.translate(new Vector3(0, 3, 6)); camera.transform.rotate(new Vector3(-15, 0, 0), true, false); camera.clearColor=null; camera.addComponent(CameraMoveScript); CameraStat.show(camera, 200, 0); //添加方向光 var di...
来源: Laya_社区 发布时间: 20170331
...返回的d的数据 var startPoi=new Laya.Vector3(this.Bullet.transform.position.x,this.Bullet.transform.position.y,this.Bullet.transform.position.z-0.5);//起始点 var dir = new Laya.Vector3(0,0,-1);//方向 var ray:Laya.Ray = new Laya.Ray(startPoi,dir);//创建...
来源: Laya_社区 发布时间: 20231120
...liderShape = new Laya.CompoundColliderShape(); this.cube.transform.localPosition = new Laya.Vector3(); } let pos = this.cubeP.transform.position; pos.z += dis; this.cubeP.transform.position = pos; if(this.cube.transform.lo...
来源: Laya_社区 发布时间: 20200223
...设置u_ShadowMapTex onUpdate(){ this.ShadowCamera.transform.lookAt(new Vector3(0,0,0), new Vector3(0,1,0), false); let v:Matrix4x4 = this.ShadowCamera.viewMatrix; let p:Matrix4x4 = this.ShadowCamera.projectionMatrix; ...
来源: Laya_社区 发布时间: 20200229
...01; //加上这行代码:Z轴平移直到移到视野之外 layaMonkey3D.transform.position = _position; camera.viewport.project(layaMonkey3D.transform.position, camera.projectionViewMatrix, _outPos); layaMonkey2D.pos(_outPos.x / Laya.stage.clientScaleX, _outPos.y / Laya.stage.clientScaleY); } 201...
来源: Laya_社区 发布时间: 20170810
...oolsdaochu/denglongyu.jpg"); fish.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); fish.transform.position = new Laya.Vector3(0,0.5,0); // fish.transform.position = new Laya.Vector3(0.4,0.5,-0.35); fish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0...
来源: Laya_社区 发布时间: 20171206
...is.camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100)); this.camera.transform.translate(new Laya.Vector3(0, 6, 13)); this.camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); this.camera.addComponent(CameraMoveScript); //加载猴子 this.layaMonkey = this.scene.addChild(Laya.Sp...
来源: Laya_示例 发布时间: 20250220
...exist,is repeated loading 加载特效报重复加载 export default class TransformDemo{ private scene:Laya.Scene3D; private position:Laya.Vector3 = new Laya.Vector3(0, 0, 0); private position1:Laya.Vector3 = new Laya.Vector3(0, 0, 0); private rotate:Laya.Vector3 = ne...
来源: Laya_社区 发布时间: 20190509
资源导出后LAYA跟unity,transform效果不一致 导出文件到unity里面用,效果不一致 导出test对象到LAYA,test下面还有两个子对象,分包是Capsule和c2; 按我理解,导出的文件test.lh,在laya里面创建后是显示(transform)效果是跟unity没导出...
来源: Laya_社区 发布时间: 20180801
...is._position.x = Math.sin(this.scaleDelta += 0.01); this.layaMonkey3D.transform.position = this._position; this.camera.viewport.project(this.layaMonkey3D.transform.position, this.camera.projectionViewMatrix, this._outPos); this.layaMonkey2D.pos(this._outPos.x / Laya.stage.clientScaleX...
来源: Laya_社区 发布时间: 20180425