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

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

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

... ![](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

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

...](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

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

...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

4. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 58%]

... window.onclick = function() { // Fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var channel = 0; channel < channels; channel++) { // This gives us the actual ArrayBuffer that contains the data var nowBuffering = myArrayBuffer.getChannelData(channel); for (var i = 0...

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

5. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 40%]

... * txt 缓动对象 */ function updateColor(txt){ var c = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的回调方法 * txt ...

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

6. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 38%]

...*/ private updateColor(txt:Laya.Text):void{ var c:number = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的回调方法 * txt...

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

7. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 37%]

...private addCone(): void { //生成随机值半径和高 let raidius = Math.random() * 0.2 + 0.2; let height = Math.random() * 0.5 + 0.8; //创建圆锥形3D模型节点对象 let cone = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createCone(raidius, height)); //把圆锥形3D节点对象添加到3D场...

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

8. 缓动动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 30%]

...*/ private function updateColor(txt:Text):void { var c:int = parseInt(Math.random()*3); switch(c) { case 0: { txt.color="#EEE000"; break; } case 1: { txt.color="#FFFFFF"; break; } case 2: { txt.color="#FF0000"; break; } default: { txt.color="#EEE000"; break; } } } /** * 缓动完成后的回调方...

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