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

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

1. 多点触控的使用(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 100%]

...date方法 override public function onUpdate():void { var touchCount:int = _scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (isTwoTouch){ return; } _text.text = "触控点为1"; //获取当前的触控点,数量为1 v...

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

2. 多点触控的使用(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 99%]

...ript //重写脚本中的onUpdate方法 onUpdate() { var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (this.isTwoTouch){ return; } this._text.text = "触控点为1"; //获取当前的触控点,...

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

3. 多点触控的使用(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 99%]

...ript //重写脚本中的onUpdate方法 onUpdate() { var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (this.isTwoTouch){ return; } this._text.text = "触控点为1"; //获取当前的触控点,...

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

4. 寻路系统(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 92%]

...径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint); this.getGridIndex(th...

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

5. 寻路系统(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 92%]

...径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint); this.getGridIndex(th...

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

6. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 92%]

...路径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Event.MOUSE_UP, this, function():void { index = 0; //获取每次生成路径 getGridIndex(path[curPathIndex % pointCount].x, path[curPathIndex++ % pointCount].z, startPoint); getGridIndex(path[nextPathIndex % pointCount].x,path[nextPathI...

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

7. 如何使用3D场景2D人物进行混合开发(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 88%]

...d&group=Advance&name=Secne3DPlayer2D)) ```typescript //变换位置 this._position.x = Math.sin(this.scaleDelta += 0.01) * 2; this._position.z = Math.cos(this.scaleDelta += 0.01) * 2; //修改球的位置 this.sphere.transform.position = this._position; //计算位置 this._camera.viewport.project...

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

8. 如何使用3D场景2D人物进行混合开发(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 88%]

...d&group=Advance&name=Secne3DPlayer2D)) ```typescript //变换位置 this._position.x = Math.sin(this.scaleDelta += 0.01) * 2; this._position.z = Math.cos(this.scaleDelta += 0.01) * 2; //修改球的位置 this.sphere.transform.position = this._position; //计算位置 this._camera.viewport.project...

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

9. 如何使用3D场景2D人物进行混合开发(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 88%]

...d&group=Advance&name=Secne3DPlayer2D)) ```typescript //变换位置 this._position.x = Math.sin(this.scaleDelta += 0.01) * 2; this._position.z = Math.cos(this.scaleDelta += 0.01) * 2; //修改球的位置 this.sphere.transform.position = this._position; //计算位置 this._camera.viewport.project...

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

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

... ```typescript /* ……省略若干代码 */ //创建刚体碰撞器 let _rigidBody = sphere.addComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D; //开启运动类型刚体 _rigidBody.isKinematic = true; /* ……省略若干代码 */ ``` 在Unity中设置运动类型刚体的方式,如图4所示...

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