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

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

1. 把摄像机添加到一个物体上,然后绕着这个物体旋转 [ 100%]

...好摄像机的默认位置角度使其朝向物体就行了 var map: Laya.Sprite3D = Laya.loader.getRes("cj/cj.lh"); this.scene.addChild(map); var cjd0: Laya.Sprite3D = new Laya.Sprite3D(); cjd0.addChild(this.camera); map.addChild(cjd0); cjd0.addComponent(CameraMoveScript); 可是,这样添加的...

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

2. 如何获取一个3D模型的长宽高? [ 80%]

...复 183*****755 赞同来自: sfsmmc 、zwy363 加载后完成后调用,Sprite3D.meshRender.boundingBox 2017-08-11 2 1 分享 微博 QZONE 微信 McGee 赞同来自: Laya.MeshSprite3D.prototype.meshRenderer,bounds 2019-07-08 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...

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

3. 3D中摄像机绕物体旋转该如何实现? [ 50%]

...sform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this.targetAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); t...

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

4. 官方案例里摄像机绕物体旋转脚本的问题 [ 36%]

...sform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this.targetAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); t...

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