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

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

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

...osition.x; disVector1.y = touch.position.y - touch2.position.y; distance = Vector2.scalarLength(disVector1); first = false; } else{ disVector2.x = touch.position.x - touch2.position.x; disVector2.y = touch.position.y - touch2.position.y; var distance2:Number = Vector2.scalarLength(disVector2); //根...

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

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

....disVector1.y = touch.position.y - touch2.position.y; this.distance = Laya.Vector2.scalarLength(this.disVector1); this.first = false; } else{ this.disVector2.x = touch.position.x - touch2.position.x; this.disVector2.y = touch.position.y - touch2.position.y; var distance2 = Laya.Vector2.scalarLength(...

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

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

....disVector1.y = touch.position.y - touch2.position.y; this.distance = Laya.Vector2.scalarLength(this.disVector1); this.first = false; } else{ this.disVector2.x = touch.position.x - touch2.position.x; this.disVector2.y = touch.position.y - touch2.position.y; var distance2 = Laya.Vector2.scalarLength(...

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

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

...* ……省略若干代码 */ //创建一个屏幕点 let point = new Laya.Vector2(); //创建一个射线 Laya.Ray(射线的起点,射线的方向) let ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point....

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