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

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

1. 为什么动态设置聚光灯朝向无效呢 [ 100%]

...on; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚光灯,始终朝向模型, 模型是在移动的, 但是没有光的效果? 2017-11-05 添加...

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

2. 为什么动态设置聚光灯朝向无效呢 [ 100%]

...on; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚光灯,始终朝向模型, 模型是在移动的, 但是没有光的效果? 2017-11-05 添加...

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

3. 文档这块是不是错了? [ 98%]

...向量 = AB方向向量 — AC方向向量 引擎提供方法为:Vector3.subtract(ab:Vector3, ac:Vector3, bc:Vector3)。 CB表示C点到B点的方向向量,AB表示A点到B点方向向量,AC表示A点到C点的方向向量(可画图理解)。   这样应该就明白了 2018-04-03 0 0 分...

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

4. 为什么动态设置聚光灯朝向无效呢 [ 96%]

...on; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚光灯,始终朝向模型, 模型是在移动的, 但是没有光的效果? 2017-11-05 添加...

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

5. position -position应该怎么写?? [ 95%]

...链接 提交 3 个回复 183*****755 赞同来自: laya.d3.math.Vector3.subtract(a:Vector3, b:Vector3, o:Vector3) 2017-06-13 0 0 分享 微博 QZONE 微信 demibug 赞同来自: 非常麻烦,自己派生一个类吧,不然你写一个连续加连续减会麻烦的要死。 2017-06-13 0 0 分享...

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

6. 3d中 缓动往一个点转向并移动的问题 [ 83%]

... out2:Quaternion=new Quaternion(); var dir:Vector3=new Vector3() ; Vector3.subtract(transform.position,sphere3D.transform.position,dir); Quaternion.rotationLookAt(dir,Vector3.Up,out); Quaternion.slerp(transform.rotation,out, Laya.timer.delta/1000,out1); transform.rotation = out1; transform.translate...

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

7. VR的demo有没有加载3D场景的啊,实在不知怎么加 [ 69%]

...AIN"); //setMeshParams(sprite, Laya.StandardMaterial.BLENDEQUATION_REVERSE_SUBTRACT, new Laya.Vector4(3.5, 3.5, 3.5, 1.0), new Laya.Vector3(0.6823, 0.6549, 0.6352), new Laya.Vector2(25.0, 25.0), "TERRAIN"); }); function setMeshParams(spirit3D, renderMode, albedo, ambientColor, uvScale, shaderName) {...

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

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

...; Vector3.scale(this.GetForward, this.CurrentDistance, this.tempV) Vector3.subtract(this.AroundPos, this.tempV, this.tempV1) this.transform.position = this.tempV1; this.lastMouseX = Laya.stage.mouseX; this.lastMouseY = Laya.stage.mouseY; } //记录上一次手机触摸位置判断用户是在左放...

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

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

...; Vector3.scale(this.GetForward, this.CurrentDistance, this.tempV) Vector3.subtract(this.AroundPos, this.tempV, this.tempV1) this.transform.position = this.tempV1; this.lastMouseX = Laya.stage.mouseX; this.lastMouseY = Laya.stage.mouseY; } //记录上一次手机触摸位置判断用户是在左放...

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