大约有 84 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0038 秒)
....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
... setGlobalMatrix setGlobalNumber setGlobalTexture setGlobalVector setGlobalVector2 setGlobalVector3 setRenderTarget setShaderDataColor setShaderDataInt setShaderDataMatrix setShaderDataNumber setShaderDataTexture setShaderDataVector setShaderDataVector2 setShaderDataVector3 setShaderDefine Construct...
来源: Laya3.0_api 发布时间: 20231115
...43P1%XK0EMLAZO8{}XNAMK.pngB43P1%XK0EMLAZO8{}XNAMK private pointRay:Laya.Vector2 = new Laya.Vector2(); private hitresult:Laya.HitResult = new Laya.HitResult(); private UpdateRay() { //射线初始化(必须初始化) //获取鼠标在屏幕空间位置 this.pointRay.x = Laya.MouseManager.ins...
来源: Laya_社区 发布时间: 20190416
... ![](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
... ![](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_文档 发布时间: 20210714
...(3.5, 3.5, 3.5, 1.0), new Vector3(0.6, 0.6, 0.6), new Vector2(1.0, 1.0)); }); mesh.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); mesh.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); 附件 : --> 2017-07-18 添加评论 ...
来源: Laya_社区 发布时间: 20170718
...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
...eckHit); var hit = new Laya.RaycastHit(); var point = new Laya.Vector2(); var ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.m...
来源: Laya_社区 发布时间: 20170915
...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