• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 81 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)

1. 其他引擎的Demo-Example_23 [ 100%]

...r.life = 0; var pos1; var pos2; if (type % 2) { pos1 = new Point(-20, Math.random() * viewHeight); pos2 = new Point(viewWidth, Math.random() * viewHeight + 20); } else { pos1 = new Point(Math.random() * viewWidth, -20); pos2 = new Point(Math.random() * viewWidth, viewHeight + 20); } var distX = pos1...

来源: Laya_示例 发布时间: 20251130

2. 其他引擎的Demo-Example_23 [ 99%]

...r.life = 0; let pos1; let pos2; if (type % 2) { pos1 = new Point(-20, Math.random() * viewHeight); pos2 = new Point(viewWidth, Math.random() * viewHeight + 20); } else { pos1 = new Point(Math.random() * viewWidth, -20); pos2 = new Point(Math.random() * viewWidth, viewHeight + 20); } let distX = pos1...

来源: Laya2.0_示例 发布时间: 20251130

3. 渲染性能实例问题 [ 96%]

...ew Laya.Sprite();for(var i=0;i<10000;i++){txt=new Text();txt.text=(Math.random()*100).toFixed(0);txt.color="#CCCCCC";txt.x=Math.random()*550;txt.y=Math.random()*400;textBox.addChild(txt);}Laya.stage.addChild(textBox); 附件 : --> 2019-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

来源: Laya_社区 发布时间: 20190531

4. laya.d3.math.RandX_API3.0 [ 95%]

...rarchy RandX Index Constructors constructor Properties defaultRand Methods random randomint Constructors constructor new RandX(seed: any[]): RandX Defined in laya/d3/math/RandX.ts:18 创建一个 Rand 实例。 Parameters seed: any[] 随机种子。 Returns RandX Properties Static defaultRand defaul...

来源: Laya3.0_api 发布时间: 20231115

5. 多种碰撞器形状(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 93%]

... ![](img/2.png)(图2) ```typescript //随机生成坐标值 var sX = Math.random() * 0.75 + 0.25; var sY = Math.random() * 0.75 + 0.25; var sZ = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))); //创建...

来源: Laya2.0_文档 发布时间: 20210715

6. 多种碰撞器形状(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 92%]

...](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, sZ)...

来源: Laya2.0_文档 发布时间: 20210714

7. 多种碰撞器形状(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 92%]

...mg/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, sY, ...

来源: Laya2.0_文档 发布时间: 20210714

8. 射线检测-放置物体 [ 88%]

..../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, 90, ...

来源: Laya_示例 发布时间: 20251130

9. 3D网格添加刚体后设置欧拉角出现位置错误 [ 88%]

...         //设置旋转角度         this.tmpVector.setValue(Math.random() * 360, Math.random() * 360, Math.random() * 360);         box.transform.rotationEuler = this.tmpVector;         //设置掉落位置         this.tmpVector.setValue(-2, 2, -2);         box.transform.p...

来源: Laya_社区 发布时间: 20201127

10. 输入设备-贪吃蛇(重力感应) [ 87%]

...food.graphics.drawRect(0, 0, foodSize, foodSize, "#00BFFF"); food.x = Math.random() * Laya.stage.width; food.y = Math.random() * Laya.stage.height; } })()module laya { import Sprite = Laya.Sprite; import AccelerationInfo = Laya.AccelerationInfo; import Accelerator = Laya.Accelerator; import Point = ...

来源: Laya_示例 发布时间: 20251130