大约有 411 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0040 秒)
Laya_社区(167) Laya3.0_api(86) Laya2.0_api(57) laya_api(53) Laya2.0_文档(23) Laya2.0_示例(10) Laya_示例(9) Laya3.0_文档(6)
... = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _corners = new Array(); _corners[0] = new Laya.Vector3(); _corners[1] = new Laya.Vector3(); _corners[2] = new Laya.Vector3(); _corners[3] = new Laya.Vector3(); _corners[4] = new Laya.Vector3();...
来源: Laya_示例 发布时间: 20241117
...a_Aaron 赞同来自: sheen 硬算代码: vector3d为旋转轴ac轴, point3d为B点, 返回结果为D点 PointRoundVector( vector3d: Vector3, point3d: Vector3 , Aplha: number ): Vector3{ let u:number = point3d.x; let v:number = point3d.y; l...
来源: Laya_社区 发布时间: 20191218
... ```typescript mouseDown(){ //获取鼠标点击位置的屏幕坐标 this.point.x = MouseManager.instance.mouseX; this.point.y = MouseManager.instance.mouseY; //由点击的屏幕坐标产生射线 this.camera.viewportPointToRay(this.point, this.ray); //创建CannonHitResult对象来存储射线检...
来源: Laya2.0_文档 发布时间: 20210714
...e concat copyTo destroy getScaleX getScaleY identity invert invertTransformPoint recover rotate scale setTo setTranslate skew toString transformPoint transformPointN translate create mul mul16 Constructors constructor new Matrix(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: numbe...
来源: Laya3.0_api 发布时间: 20231115
...么? import WebGL = Laya.WebGL; import Browser = Laya.Browser; import Point = Geometry.Point; // 程序入口 class GameMain{ constructor() { Laya.init(Browser.width, Browser.height, WebGL); this.CreateCircle(); // this.CreateRectangle(); } private firstSp: Laya.Sprite; private _adaptSp: Laya...
来源: Laya_社区 发布时间: 20190314
...true; var num:int = 0; var offsetArr:Array = [0, 0]; var point:Point = new Point(this.x, this.y); Laya.stage.timerLoop(speed, this, shakeObject); function shakeObject(args:Array=null, frameNum:uint=1, frameTime:uint=0):void{ var count:int = (num++) % 4; ...
来源: Laya_社区 发布时间: 20170823
...box单元格是同一个 localToGlobal: function (ele, flag) { var point = new laya.maths.Point(ele.pivotX, ele.pivotY); // flag = flag ? true : false; return ele.localToGlobal(point, flag); } console.log(box); var targetXY = Utils.localToGlobal(box, false); console.log(...
来源: Laya_社区 发布时间: 20171102
..., 0, 0)); } onMouseDown() { this.point.x = Laya.stage.mouseX; this.point.y = Laya.stage.mouseX; //产生射线 this.camera.viewportPointToRay(this.point,this._ray); //拿到射线碰撞的物体 thi...
来源: Laya_社区 发布时间: 20220506
...拷贝要怎么实现? 比如在AS3中,我只是随便举个例子: var p1:Point = new Point(1,2); var p2:Point = p1.clone(); 但是LayaAir都没有这个clone()方法. 在AS3中大部分对象有一个clone方法,数组的深拷贝使用ByteArray,在LayaAir里面要怎么处理? 2017-04-01 添加...
来源: Laya_社区 发布时间: 20170401
... private function _onMouseDown(e:Event):void { var point:Point = this.getMousePoint(); if (_dragArea.contains(point.x, point.y)) this.startDrag(); else this.stopDrag(); } 找到这段代码,改引擎,做判...
来源: Laya_社区 发布时间: 20180719