大约有 66 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0035 秒)
为什么动态设置聚光灯朝向无效呢 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
...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
...有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
...or4] Defined in laya/d3/shader/SubShader.ts:48 a_Normal a_Normal: [number, Vector3] = [VertexMesh.MESH_NORMAL0, ShaderDataType.Vector3] Defined in laya/d3/shader/SubShader.ts:44 a_Position a_Position: [number, Vector4] = [VertexMesh.MESH_POSITION0, ShaderDataType.Vector4] Defined in laya/d3/shader/S...
来源: Laya3.0_api 发布时间: 20231102
...ZONE 微信 NilZ 赞同来自: //求AC AB的叉积 Vector3.cross(AC, AB, out); //单位化一下 Vector3.normalize(out, out); //得到旋转轴 Vector3.add(A, out); //得到旋转矩阵 Matrix4x4.createRo...
来源: Laya_社区 发布时间: 20191224
...nimator) as Laya.Animator; console.log("11"); } public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.transform.translate(norDir,false); // let position = Laya.Vector3.ZERO; // Laya.Vector3.add(this.s...
来源: Laya_社区 发布时间: 20191026
...d(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/three...
来源: Laya2.0_文档 发布时间: 20210714
...umentationAll Packages | All Classes | Index | Frames No Frames ConchVector3Properties | Methods | Constants Packagelaya.d3.math.NativeClasspublic class ConchVector3InheritanceConchVector3 ObjectImplements laya.d3.core.IClone Vector3 类用于创建三维向量。 Public Properties Propert...
来源: Laya2.0_api 发布时间: 20190513