大约有 145 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0034 秒)
Laya_社区(40) Laya3.0_api(38) Laya2.0_文档(28) Laya2.0_api(17) laya_api(13) Laya3.0_文档(7) Laya_示例(2)
...谢 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
...; //根据移动的距离进行旋转 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
...; //根据移动的距离进行旋转 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
...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
...de(octree:BoundsOctree, parent:BoundsOctreeNode, baseLength:Number, center:Vector3) 创建一个 BoundsOctreeNode 实例。 BoundsOctreeNode add(object:IOctreeObject):Boolean 添加指定物体。 BoundsOctreeNode getBound():BoundBox 获取包围盒。 BoundsOctreeNode getCollidingWithBound...
来源: Laya2.0_api 发布时间: 20190513
...动插值参数值 public camDepthSmooth: number = 20 public curpos: Laya.Vector3; private delatpos: Laya.Vector3; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即...
来源: Laya3.0_文档 发布时间: 20241014
...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
...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
...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
...影响,真正影响的应该是这两行代码:var vForce = new Laya.Vector3(1.1, 0, -50);rigidBody.applyImpulse(vForce, null);我已经删减了逻辑代码,重新上传了精简的demo,帮忙再看一下。 NothingSerious • 2019-06-13 15:36 有没有方法,可以获取到小球碰撞...
来源: Laya_社区 发布时间: 20181126