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

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

1. laya.maths.Vector3_API3.0 [ 100%]

...als lerp max min multiply normalize scalarLength scalarLengthSquared scale subtract transformCoordinate transformQuat transformV3ToV3 transformV3ToV4 Constructors constructor new Vector3(x?: number, y?: number, z?: number): Vector3 Defined in laya/maths/Vector3.ts:329 创建一个 Vector3 实例。 ...

来源: Laya3.0_api 发布时间: 20231115

2. laya.d3.math.Vector3_API3.0 [ 99%]

...als lerp max min multiply normalize scalarLength scalarLengthSquared scale subtract transformCoordinate transformQuat transformV3ToV3 transformV3ToV4 Constructors constructor new Vector3(x?: number, y?: number, z?: number): Vector3 Defined in laya/d3/math/Vector3.ts:329 创建一个 Vector3 实例...

来源: Laya3.0_api 发布时间: 20231102

3. laya.d3.math.Vector3 [ 97%]

...  setValue(x:Number, y:Number, z:Number):void 设置xyz值。 Vector3  subtract(a:Vector3, b:Vector3, o:Vector3):void[static] 求两个三维向量的差。 Vector3  toDefault():voidVector3  transformCoordinate(coordinate:Vector3, transform:Matrix4x4, result:Vector3):void[static] 通过矩...

来源: Laya2.0_api 发布时间: 20190513

4. laya.d3.math.Vector3 [ 96%]

...tor3, b:Number, out:Vector3):void[static] 缩放三维向量。 Vector3  subtract(a:Vector3, b:Vector3, o:Vector3):void[static] 求两个三维向量的差。 Vector3  toDefault():voidVector3  transformCoordinate(coordinate:Vector3, transform:Matrix4x4, result:Vector3):void[static] 通过矩...

来源: laya_api 发布时间: 20170929

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

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

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

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

7. 文档这块是不是错了? [ 89%]

...向量 = 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

8. position -position应该怎么写?? [ 89%]

...链接 提交 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

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

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

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

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