大约有 25 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0037 秒)
....disVector1.y = touch.position.y - touch2.position.y; this.distance = Laya.Vector2.scalarLength(this.disVector1); this.first = false; } else{ this.disVector2.x = touch.position.x - touch2.position.x; this.disVector2.y = touch.position.y - touch2.position.y; var distance2 = Laya.Vector2.scalarLength(...
来源: Laya2.0_文档 发布时间: 20210715
...接 提交 1 个回复 158*****364 赞同来自: this.mousePos = new Laya.Vector2(Laya.MouseManager.instance.mouseX, Laya.MouseManager.instance.mouseY); //鼠标点击屏幕产生射线 this.camera.viewportPointToRay(this.mousePos, this.ray); var phy:Laya.PhysicsSimulation =...
来源: Laya_社区 发布时间: 20190505
... ![](img/1.png)(图1) ```typescript //创建一个点 var point = new Laya.Vector2(); //创建一个射线 var ray= new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point.y = Laya.stage.mouseY; //计算一个从屏...
来源: Laya2.0_文档 发布时间: 20210715
...e; var transformUV = new Laya.TransformUV(); transformUV.tiling = new Laya.Vector2(2, 1); // transformUV.offset = new Laya.Vector2(0.1, 0.1); material.transformUV = transformUV; } return D3Helper.materialDic[name]; }; 2018-02-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180206
...r4(3.5, 3.5, 3.5, 1.0), new Laya.Vector3(0.6823, 0.6549, 0.6352), new Laya.Vector2(25.0, 25.0), "TERRAIN"); //setMeshParams(sprite, Laya.StandardMaterial.BLENDEQUATION_REVERSE_SUBTRACT, new Laya.Vector4(3.5, 3.5, 3.5, 1.0), new Laya.Vector3(0.6823, 0.6549, 0.6352), new Laya.Vector2(25.0, 25.0), "TER...
来源: Laya_社区 发布时间: 20170707
...s._onStageDown); } _onStageDown() { //创建一个点 var point = new Laya.Vector2(); var outHitResult = new Laya.HitResult(); //创建一个射线 var ray= new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point.y = ...
来源: Laya_社区 发布时间: 20200801
...w Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); this.phasorSpriter3D = new Laya.PhasorSpriter3D(); this.camera = this.addChild(new Laya.Camera(0, 0.1, 100)); this.camera.transform.translate(new Laya.Vector3(0, 1, 3)); //...
来源: Laya_社区 发布时间: 20170323
...new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); private point: Laya.Vector2 = new Laya.Vector2(); private _outHitAllInfo: Array<Laya.RaycastHit>; private camera: Laya.Camera; private label: Laya.Label; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FU...
来源: Laya_社区 发布时间: 20180820
...e.log("相机位置",this.camera.) this.camera.viewportPointToRay(new Laya.Vector2(Laya.stage.mouseX,Laya.stage.mouseY),this.ray) if(this.physics.rayCast(this.ray,this.hitInfo)){ console.log("检测到了") } } 2019-06-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20190621
...rt ShurikenParticleMaterial = Laya.ShurikenParticleMaterial; import Vector2 = Laya.Vector2; import Vector3 = Laya.Vector3; import Vector4 = Laya.Vector4; import Particle3...
来源: Laya_社区 发布时间: 20170605