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

大约有 237 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)

61. 设置transform.localRotation之后,就不能再使用transform.rotate了 [ 84%]

设置transform.localRotation之后,就不能再使用transform.rotate了 laya3D, ... var ele=eleroot.getChildAt(0).clone(); ele.transform.position=new Laya.Vector3(0, 0, 0); scene.addChild(ele); ... ele.transform.rotate(new Laya.Vector3(10, 0, 0), true); //这里会有效 ele.transform.localRo...

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

62. 摄像机捕捉目标(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 84%]

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

63. 摄像机捕捉目标(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 84%]

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

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

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

65. 判断玩家在地面还在空中 [ 84%]

...ody.colliderShape as Laya.BoxColliderShape         let y:number = this.transform.position.y-bc.sizeY/2 - 0.05         let vec3:Laya.Vector3 = new Laya.Vector3(this.transform.position.x,y,this.transform.position.z);         var ray = new Laya.Ray(vec3,new Laya.Vector3(0,0,1));        ...

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

66. 3D模型无法用Tween类吗 [ 84%]

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

67. 怎么获取对象的坐标 [ 83%]

...r3 {elements: Float32Array[3]}   改成這樣:    console.log( camera.transform.position.x ); console.log( camera.transform.position.y ); console.log( camera.transform.position.z );   另外;你的 position 打錯,不是 postion 是 position。   2017-08-08 2 0 分享 微博 QZONE 微...

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

68. laya2.0发射射线正前方如何表示? [ 83%]

...终点,就是正前方 这个正前方用pos = new Laya.Vector3(雪球.transform.position.x, 雪球.transform.position.y, 雪球.transform.position.z + 5); 理论上用这样表示应该可以吧,但效果是这样的,看图 附件 : --> 2019-03-20 添加评论 免费帖 --> 分享 微博 QZON...

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

69. [LayaAir3]3d刚体物体使用transform移动无效 [ 83%]

[LayaAir3]3d刚体物体使用transform移动无效 3.2.1里都还是可以的,更新到3.2.2之后就没法控制了。 let cube = this.owner.getChildByName("Cube")as Laya.Sprite3D; cube.transform.position = new Laya.Vector3(0, 5, 0);------------------------------------------ 有人回复了,...

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

70. 射线检测-碰撞器混合 [ 83%]

...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_示例 发布时间: 20251130