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

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

51. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 74%]

...谢 class MultiTouch{     private text:Laya.Text;     private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0); constructor(){         Laya.alertGlobalError = true; this._upVector3 = new Laya.Vector3(0, 1, 0); //初始化引擎         Laya3D.init(0, 0);         La...

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

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.0文档 · LAYABOX [ 72%]

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

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

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