大约有 91 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0041 秒)
Laya3.0_api(28) Laya2.0_api(16) Laya2.0_文档(15) Laya_社区(13) laya_api(12) Laya_示例(4) Laya3.0_文档(3)
为什么动态设置聚光灯朝向无效呢 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
...Textures/Barrel_Occlusion.png'); //反射颜色 mat.albedoColor = new Laya.Vector4(1, 1, 1, 1); //光滑度缩放系数 mat.smoothnessTextureScale = 1.0; //遮挡贴图强度 mat.occlusionTextureStrength = 1.0; //法线贴图缩放洗漱 mat.normalScale = 1; //光滑度数据源:从金属度贴图/...
来源: Laya_示例 发布时间: 20241124
...l Inherited Externals Only exported Menu Globals "laya/d3/math/Native/ConchVector4" ConchVector4 Class ConchVector4 Vector4 类用于创建四维向量。 Hierarchy ConchVector4 Implements IClone Index Constructors constructor Properties elements ONE UnitW UnitX UnitY UnitZ ZERO Accessors w x y z Me...
来源: Laya3.0_api 发布时间: 20231102
...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