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

大约有 149 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0030 秒)

51. 场景雾化(ActionScript-3D基础(AS3)-LayaAir3D之场景渲染配置) [ 74%]

...码 scene.enableFog = true; //设置雾化的颜色 scene.fogColor = new Vector3(0,0,0.6); //设置雾化的起始位置,相对于相机的距离 scene.fogStart = 10; //设置雾化最浓处的距离。 scene.fogRange = 40; ``` 效果显示(图4): ![](img/4.png)(图4)

来源: Laya2.0_文档 发布时间: 20210715

52. 多点触控的使用(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 74%]

...; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.input.getTouch(0); var touch2...

来源: Laya2.0_文档 发布时间: 20210715

53. 多点触控的使用(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 74%]

...; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.input.getTouch(0); var touch2...

来源: Laya2.0_文档 发布时间: 20210715

54. laya.d3.core.scene.BoundsOctree [ 74%]

...MethodDefined By  BoundsOctree(initialWorldSize:Number, initialWorldPos:Vector3, minNodeSize:Number, looseness:Number) 创建一个 BoundsOctree 实例。 BoundsOctree  add(object:IOctreeObject):void 添加物体 BoundsOctree  addMotionObject(object:IOctreeObject):void 添加运动物体。 Bo...

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

55. laya.d3.core.scene.BoundsOctreeNode [ 73%]

...de(octree:BoundsOctree, parent:BoundsOctreeNode, baseLength:Number, center:Vector3) 创建一个 BoundsOctreeNode 实例。 BoundsOctreeNode  add(object:IOctreeObject):Boolean 添加指定物体。 BoundsOctreeNode  getBound():BoundBox 获取包围盒。 BoundsOctreeNode  getCollidingWithBound...

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

56. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...动插值参数值 public camDepthSmooth: number = 20 public curpos: Laya.Vector3; private delatpos: Laya.Vector3; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即...

来源: Laya3.0_文档 发布时间: 20251010

57. SpotLight介绍(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 72%]

...t()) as Laya.SpotLight; //设置聚光灯颜色 spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0, 0.0)); s...

来源: Laya2.0_文档 发布时间: 20210715

58. SpotLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 72%]

...Laya.SpotLight()); //设置聚光灯颜色 this.spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 this.spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = this.spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0...

来源: Laya2.0_文档 发布时间: 20210715

59. SpotLight介绍(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 72%]

...w SpotLight()) as SpotLight; //设置聚光灯颜色 spotLight.color = new Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Vector3(0.0, 1.2, 0.0); //设置聚光灯的方向 var mat:Matrix4x4 = spotLight.transform.worldMatrix; mat.setForward(new Vector3(0.15, -1.0, 0.0))...

来源: Laya2.0_文档 发布时间: 20210715

60. laya2.0物理引擎问题,刚体施加相同的冲量,碰到墙壁后反弹效果不一样 [ 71%]

...影响,真正影响的应该是这两行代码:var vForce = new Laya.Vector3(1.1, 0, -50);rigidBody.applyImpulse(vForce, null);我已经删减了逻辑代码,重新上传了精简的demo,帮忙再看一下。 NothingSerious • 2019-06-13 15:36 有没有方法,可以获取到小球碰撞...

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