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

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

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

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

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

32. 请教下, 自己写了个渐变色shader, 但是效果始终不对。麻烦大神们看看代码哪里有问题 [ 77%]

...1);\n" + "};"; this._setColor(Laya.VertexElementUsage.STARTCOLOR0,new Laya.Vector4(1,0,0,1)); this._setColor(Laya.VertexElementUsage.ENDCOLOR0,new Laya.Vector4(0,0,1,1)); var customShader = Laya.Shader3D.nameKey.add("GradientShader"); Laya.ShaderCompile3D.add(customShader, vs, ps, attributeMap, unif...

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

33. 自定义shader-地形shader [ 77%]

....addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-38, 180, 0), false, false); camera.transform.translate(new Laya.Vector3(-5, 20, -30), false); camera.addComponent(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { setCustomMaterial(scene...

来源: Laya_示例 发布时间: 20240930

34. laya.d3.math.native.ConchVector3_API3.0 [ 77%]

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

35. 动画混合问题,Avatar动画混合报错. [ 75%]

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

36. laya.d3.math.Native.ConchVector4 [ 72%]

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

37. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 72%]

...Laya.RaycastHit; constructor() { super(); this.ray = new Laya.Ray(new Laya.Vector3(0,0,0),new Laya.Vector3(0,-2,0)); this.outHitInfo = new Laya.RaycastHit(); } /*覆写3D组件方法,指3D对象加载组件时执行 *owner:此组件所属的3D对象 */ public _load(owner:Laya.Sprite3D):void{ //...

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

38. 求ShuriKenParticle3D用法 [ 71%]

...rt ShurikenParticleMaterial = Laya.ShurikenParticleMaterial;     import Vector2                  = Laya.Vector2;     import Vector3                  = Laya.Vector3;     import Vector4                  = Laya.Vector4;     import Particle3...

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

39. laya.d3.math.Native.ConchVector3 [ 69%]

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

40. laya.d3.core.scene.bvh.BVHSpatialBox_API3.0 [ 69%]

...0 获得渲染list Returns IBoundsCell[] getNearlist getNearlist(checkPos: Vector3): BVHSpatialBox<T> Defined in laya/d3/core/scene/bvh/BVHSpatialBox.ts:363 获得最近的Content BVHBox Parameters checkPos: Vector3 Returns BVHSpatialBox<T> getchild0 getchild0(): BVHSpatialBox<T> D...

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