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

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

71. 加载TiledMap 不显示 [ 89%]

...a.stage.mouseY, p);         this.layer.getScreenPositionByTilePos(Math.floor(p.x), Math.floor(p.y), p);         this.sprite.pos(p.x, p.y);     }      private mapLoaded(): void {         this.layer = this.tiledMap.getLayerByIndex(0);          var ra...

来源: Laya_社区 发布时间: 20201230

72. 点击区域问题 [ 88%]

... new laya.display.Sprite; con1.addChild(con); // con.scrollRect = new laya.maths.Rectangle(200,200,500,500); con.x = con.y = -200; var sp:laya.display.Sprite = new laya.display.Sprite; con.addChild(sp); sp.x = 250; sp.y = 300; sp.graphics.drawRect(-50,-100,100,100,"#ff0000"); sp.hitArea = new laya.m...

来源: Laya_社区 发布时间: 20180106

73. 2D物理-仿生机器人 [ 88%]

... p1.concat(p2).concat(p3).join(","); legCollider2.points = [0, 0].concat(B2Math.SubVV(p5, p4)).concat(B2Math.SubVV(p6, p4)).join(","); } else { legCollider1.points = p1.concat(p3).concat(p2).join(","); legCollider2.points = [0, 0].concat(B2Math.SubVV(p6, p4)).concat(B2Math.SubVV(p5, p4)).join(","); ...

来源: Laya2.0_示例 发布时间: 20240929

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

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

75. laya.maths.Point [ 88%]

... | Frames No Frames PointProperties | Methods | Constants Packagelaya.mathsClasspublic class PointInheritancePoint Object Point 对象表示二维坐标系统中的某个位置,其中 x 表示水平轴,y 表示垂直轴。 Public Properties PropertyDefined By  x : Number该点的水平...

来源: laya_api 发布时间: 20170929

76. laya.d3.math.BoundBox [ 88%]

... Index | Frames No Frames BoundBoxProperties | Methods Packagelaya.d3.mathClasspublic class BoundBoxInheritanceBoundBox ObjectImplements laya.d3.core.IClone BoundBox 类用于创建包围盒。 Public Properties PropertyDefined By  max : Vector3最大顶点。BoundBox  min : Vector3最小...

来源: laya_api 发布时间: 20170929

77. laya.d3.math.Rand [ 88%]

...s | Index | Frames No Frames RandProperties | Methods Packagelaya.d3.mathClasspublic class RandInheritanceRand Object Rand 类用于通过32位无符号整型随机种子创建随机数。 Public Properties PropertyDefined By  seed : uint 获取随机种子。 Rand  seeds : Uint32Array获...

来源: laya_api 发布时间: 20170929

78. laya.d3.math.Rand [ 88%]

...s | Index | Frames No Frames RandProperties | Methods Packagelaya.d3.mathClasspublic class RandInheritanceRand Object Rand 类用于通过32位无符号整型随机种子创建随机数。 Public Properties PropertyDefined By  seed : uint 获取随机种子。 Rand  seeds : Uint32Array获...

来源: Laya2.0_api 发布时间: 20190513

79. laya.d3.math.Plane [ 88%]

... | Index | Frames No Frames PlaneProperties | Methods Packagelaya.d3.mathClasspublic class PlaneInheritancePlane Object Plane 类用于创建平面。 Public Properties PropertyDefined By  distance : Number平面到坐标系原点的距离Plane  normal : Vector3平面的向量Plane  Pla...

来源: laya_api 发布时间: 20170929

80. laya.d3.math.Plane [ 88%]

... | Index | Frames No Frames PlaneProperties | Methods Packagelaya.d3.mathClasspublic class PlaneInheritancePlane Object Plane 类用于创建平面。 Public Properties PropertyDefined By  distance : Number平面到坐标系原点的距离Plane  normal : Vector3平面的向量Plane  Pla...

来源: Laya2.0_api 发布时间: 20190513