大约有 474 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0038 秒)
Laya_社区(251) Laya_示例(61) Laya3.0_api(39) Laya2.0_文档(33) Laya2.0_api(28) Laya2.0_示例(25) laya_api(21) Laya3.0_文档(16)
..."../../res/threeDimen/texture/layabox.png"); mat.albedo = new Laya.Vector4(Math.random(), Math.random(), Math.random(), 1); sphere.meshRender.material = mat; Laya.Vector3.add(_outHitInfo.position, _offset, _position); sphere.transform.position = _position; sphere.transform.rotate(new Laya.Vector3(0,...
来源: Laya_示例 发布时间: 20241117
...tageX; this.moveY = e.stageY; this.isMode = "run"; // 获取半径 var r = Math.sqrt(Math.pow((this.starX - this.moveX), 2) + Math.pow((this.starY - this.moveY), 2)); //当移动半径大于大圆的半径时,半径等于大圆的0.5的宽度(也就是半径) if (r >= this.moveMax.width/2) ...
来源: Laya_社区 发布时间: 20171030
... ![](img/2.png)(图2) ```typescript //随机生成坐标值 var sX:int = Math.random() * 0.75 + 0.25; var sY:int = Math.random() * 0.75 + 0.25; var sZ:int = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, ...
来源: Laya2.0_文档 发布时间: 20210714
...var touches = e.touches; if (touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); } } function onMouseMove(e) { var touches = e.touches; if (touches && touches.leng...
来源: Laya_示例 发布时间: 20241117
...I DocumentationAll Packages | All Classes | Index | Frames No Frames MathUtils3DMethods | Constants Packagelaya.d3.mathClasspublic class MathUtils3DInheritanceMathUtils3D Object MathUtils 类用于创建数学工具。 Public Methods MethodDefined By MathUtils3D() 创建一个 MathUtils...
来源: laya_api 发布时间: 20170929
...I DocumentationAll Packages | All Classes | Index | Frames No Frames MathUtils3DMethods | Constants Packagelaya.d3.mathClasspublic class MathUtils3DInheritanceMathUtils3D Object MathUtils 类用于创建数学工具。 Public Methods MethodDefined By MathUtils3D() 创建一个 MathUtils...
来源: Laya2.0_api 发布时间: 20190513
...![](img/2.png)(图2) ```typescript //随机生成坐标值 var sX:number = Math.random() * 0.75 + 0.25; var sY:number = Math.random() * 0.75 + 0.25; var sZ:number = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX,...
来源: Laya2.0_文档 发布时间: 20210714
...let touches = e.touches; if (touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, this, this.onMouseMove); } } onMouseMove(e) { let touches = e.touches; if (touches && touches.length =...
来源: Laya2.0_示例 发布时间: 20241117
...Frames No Frames Vector2Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Vector2InheritanceVector2 ObjectImplements laya.d3.core.IClone Vector2 类用于创建二维向量。 Public Properties PropertyDefined By elements : *二维向量元素数组Vector2 x : Number ...
来源: laya_api 发布时间: 20170929
...e: Laya.Texture init(){ let rect = this.img.getSelfBounds() this.img.pivot(Math.round(rect.width / 2), Math.round(rect.height / 2)) let bound = this.img.getBounds() this.cacheCanvas = this.img.drawToCanvas(Math.ceil(bound.width), Math.ceil(bound.height), Math.round(bound.width / 2), Math.round(bound...
来源: Laya_社区 发布时间: 20171211