大约有 114 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0029 秒)
laya_api(33) Laya3.0_api(28) Laya2.0_api(18) Laya2.0_文档(15) Laya_社区(13) Laya_示例(4) Laya3.0_文档(3)
...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
...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
为什么动态设置聚光灯朝向无效呢 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
为什么动态设置聚光灯朝向无效呢 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
...链接 提交 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
...有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
...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
为什么动态设置聚光灯朝向无效呢 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
...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
...ZONE 微信 NilZ 赞同来自: //求AC AB的叉积 Vector3.cross(AC, AB, out); //单位化一下 Vector3.normalize(out, out); //得到旋转轴 Vector3.add(A, out); //得到旋转矩阵 Matrix4x4.createRo...
来源: Laya_社区 发布时间: 20191224