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

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

1. 通过PrimitiveMesh创建简单Mesh(JavaScript-3D基础(JS)-LayaAir3D之模型和网格) [ 100%]

...createBox(0.5, 0.5, 0.5))); box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //球体 var sphere = sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(0.25, 20, 20))); sphere.transform.position = new Laya.V...

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

2. 通过PrimitiveMesh创建简单Mesh(TypeScript-3D基础(TS)-LayaAir3D之模型和网格) [ 99%]

...createBox(0.5, 0.5, 0.5))); box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //球体 var sphere = sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(0.25, 20, 20))); sphere.transform.position = new Laya.V...

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

3. 通过PrimitiveMesh创建简单Mesh(ActionScript-3D基础(AS3)-LayaAir3D之模型和网格) [ 99%]

....5, 0.5, 0.5))) as MeshSprite3D; box.transform.position = new Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Vector3(0, 45, 0), false, false); //球体 var sphere:MeshSprite3D = sprite3D.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(0.25, 20, 20))) as MeshSprite3D; sphere.transform.positio...

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

4. 模型的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之模型和网格) [ 84%]

...h.createBox(0.5, 0.5, 0.5); var capsule = Laya.PrimitiveMesh.createCapsule(0.25, 1, 10, 20); var cylinder = Laya.PrimitiveMesh.createCylinder(0.25, 1, 20); var cone = Laya.PrimitiveMesh.createCone(0.25, 0.75); var index = 0; //.............按钮点击事件 监听 changeMeshButton.on(Laya.Event.CLI...

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

5. 模型的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之模型和网格) [ 84%]

...h.createBox(0.5, 0.5, 0.5); var capsule = Laya.PrimitiveMesh.createCapsule(0.25, 1, 10, 20); var cylinder = Laya.PrimitiveMesh.createCylinder(0.25, 1, 20); var cone = Laya.PrimitiveMesh.createCone(0.25, 0.75); var index = 0; //.............按钮点击事件 监听 changeMeshButton.on(Laya.Event.CLI...

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

6. 模型的功能介绍(ActionScript-3D基础(AS3)-LayaAir3D之模型和网格) [ 83%]

...h.createBox(0.5, 0.5, 0.5); var capsule:Mesh = PrimitiveMesh.createCapsule(0.25, 1, 10, 20); var cylinder:Mesh = PrimitiveMesh.createCylinder(0.25, 1, 20); var cone:Mesh = PrimitiveMesh.createCone(0.25, 0.75); var index:int = 0; //.............按钮点击事件 监听 changeMeshButton.on(Event.CLIC...

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

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

...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))); //创建刚体碰撞器 var...

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

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

... ```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))) as MeshSprite3D...

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

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

...`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, sZ))) as Laya.Mesh...

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

10. 绘制曲线(JavaScript-LayaAir基础篇(JS)-矢量图) [ 48%]

...中的 t 会经过由 P0 至 P1 的 B(t) 所描述的曲线。例如当 t=0.25 时,B(t) 即一条由点 P0 至 P1 路径的四分之一处。就像由 0 至 1 的连续 t,B(t) 描述一条由 P0 至 P1 的直线。 #### **1.2 二次贝塞尔曲线** ​ ![2.gif](gif/2.gif) ​ (图2) ​ ![b...

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