• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 336 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0051 秒)

91. 没有人尝试使用3d物理引擎么 [ 79%]

... 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

92. [LayaAir3]关于laya更新到3.1出现射线检测不到的情况 [ 79%]

...返回的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

93. timer.loop帧率高于物理帧率移动父级导致子物体本地坐标异常 [ 79%]

...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

94. 获取相机renderTexture 作为阴影 的UV [ 78%]

...设置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

95. 官方3D空间转2D空间的demo问题:当3D模型走出视野外后,也投影到屏幕了 [ 78%]

...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

96. 以前用lm文件加载模型。现在用lh文件加载模型无法贴图 [ 78%]

...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

97. 射线检测-碰撞器混合 [ 78%]

...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

98. Resources already exist,is repeated loading 加载特效报重复加载 [ 78%]

...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

99. 资源导出后LAYA跟unity,transform效果不一致 [ 78%]

资源导出后LAYA跟unity,transform效果不一致 导出文件到unity里面用,效果不一致 导出test对象到LAYA,test下面还有两个子对象,分包是Capsule和c2; 按我理解,导出的文件test.lh,在laya里面创建后是显示(transform)效果是跟unity没导出...

来源: Laya_社区 发布时间: 20180801

100. 1.7.18beta下转换3D坐标不正确 [ 78%]

...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