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

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

61. laya.d3.math.Matrix4x4 [ 73%]

...ll) 创建一个 Matrix4x4 实例。 Matrix4x4  billboard(objectPosition:Vector3, cameraPosition:Vector3, cameraRight:Vector3, cameraUp:Vector3, cameraForward:Vector3, mat:Matrix4x4):void[static] 计算BlillBoard矩阵 Matrix4x4  clone():* 克隆。 Matrix4x4  cloneTo(destObject:*):void 克隆...

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

62. laya.d3.math.native.ConchVector3_API3.0 [ 72%]

...l Inherited Externals Only exported Menu Globals "laya/d3/math/Native/ConchVector3" ConchVector3 Class ConchVector3 Vector3 类用于创建三维向量。 Hierarchy ConchVector3 Implements IClone Index Constructors constructor Properties elements ForwardLH ForwardRH NAN NegativeUnitX ONE UnitX UnitY...

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

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

为什么动态设置聚光灯朝向无效呢 var tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLi...

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

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

为什么动态设置聚光灯朝向无效呢 var tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLi...

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

65. 求一个三角旋转的算法代码。 [ 71%]

...链接 提交 1 个回复 Laya_Aaron 赞同来自: sheen 硬算代码: vector3d为旋转轴ac轴,  point3d为B点, 返回结果为D点  PointRoundVector( vector3d: Vector3, point3d: Vector3 ,  Aplha: number ): Vector3{                  let u:number = point3d.x;        let v:num...

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

66. 请教关于自定义3D图形的光照问题(顶点数据结构) [ 71%]

...有0 -- 附生成的图形。一点3D的效果都没有。。 ---var fNode:Vector3 = points[points.length - 1]; var sNode:Vector3 = points[i - 1]; var tNode:Vector3 = points[i - 2]; vbs.push(fNode.x,fNode.y,fNode.z, 1,1,1,1,1); vbs.push(sNode.x,sNode.y,sNode.z, 1,1,1,1,1); vbs.push(tNode.x,tNode.y,t...

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

67. 下面这段unity碰撞代码如何用laya2.0物理引擎实现 [ 71%]

...n2D collision, float newImpulsePercent, float impulseForce) {     Vector3 a = base.transform.position - collision.gameObject.transform.position;     float num = -(newImpulsePercent * impulseForce / 100f);     num = Mathf.Clamp(num, -impulseForce, impulseForce);   ...

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

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

为什么动态设置聚光灯朝向无效呢 var tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLi...

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

69. laya.d3.math.Native.ConchVector4 [ 69%]

...umentationAll Packages | All Classes | Index | Frames No Frames ConchVector4Properties | Methods Packagelaya.d3.math.NativeClasspublic class ConchVector4InheritanceConchVector4 ObjectImplements laya.d3.core.IClone Vector4 类用于创建四维向量。 Public Properties PropertyDefined By ...

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

70. 求一个关于球面旋转差值的算法代码 [ 67%]

...ZONE 微信 NilZ 赞同来自:         //求AC AB的叉积         Vector3.cross(AC, AB, out);         //单位化一下         Vector3.normalize(out, out);         //得到旋转轴         Vector3.add(A, out);         //得到旋转矩阵         Matrix4x4.createRo...

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