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

大约有 26 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0022 秒)

1. 运动刚体(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 100%]

...r.hasKeyDown(87) && kinematicSphere.transform.translate(new Vector3(0, 0, -0.2));//W KeyBoardManager.hasKeyDown(83) && kinematicSphere.transform.translate(new Vector3(0, 0, 0.2));//S KeyBoardManager.hasKeyDown(65) && kinematicSphere.transform.translate(new Vector3(-0.2, 0, 0));//A KeyBoardManager.ha...

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

2. 运动刚体(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 99%]

...wn(87) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, -0.2));//W Laya.KeyBoardManager.hasKeyDown(83) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, 0.2));//S Laya.KeyBoardManager.hasKeyDown(65) && this.kinematicSphere.transform.translate(new Laya.Vector3(-0.2,...

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

3. 运动刚体(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 99%]

...wn(87) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, -0.2));//W Laya.KeyBoardManager.hasKeyDown(83) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, 0.2));//S Laya.KeyBoardManager.hasKeyDown(65) && this.kinematicSphere.transform.translate(new Laya.Vector3(-0.2,...

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

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

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

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

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

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

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

7. 动画多层混合(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 92%]

...,混合了0层和1层的动画 animator.crossFade(motions[motionIndex], 0.2, 0); animator.crossFade(motions[motionIndex], 0.2, 1); } else { //使用普通模式播放 animator.play(motions[motionIndex], 0); animator.play(motions[motionIndex], 1); } break; case 1: if (motionCross) //在当前动画...

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

8. 动画多层混合(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 92%]

...和1层的动画 this.animator.crossFade(this.motions[this.motionIndex], 0.2, 0); this.animator.crossFade(this.motions[this.motionIndex], 0.2, 1); } else { //使用普通模式播放 this.animator.play(this.motions[this.motionIndex], 0); this.animator.play(this.motions[this.motionIndex], 1); } break...

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

9. 动画多层混合(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 92%]

...和1层的动画 this.animator.crossFade(this.motions[this.motionIndex], 0.2, 0); this.animator.crossFade(this.motions[this.motionIndex], 0.2, 1); } else { //使用普通模式播放 this.animator.play(this.motions[this.motionIndex], 0); this.animator.play(this.motions[this.motionIndex], 1); } break...

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

10. 动效模板(JavaScript-LayaAir基础篇(JS)-动画基础) [ 89%]

...管理器中,将旋转与缩放的`scaleX`与`scaleY`属性值都设为`0.2`。如图5所示。设置属性值之后,`Image`时间轴中会自动增加缩放属性`scaleX`与`scaleY`。(*由于我们这个动效模板不需要位移效果,之前创建关键帧自动生成的属性X直接删...

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