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

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

41. 其他引擎的Demo-Example_05 [ 93%]

...] - 1; } x3d = tpoint1[i]; y3d = tpoint2[i]; z3d = tpoint3[i]; ty = (y3d * Math.cos(vx)) - (z3d * Math.sin(vx)); tz = (y3d * Math.sin(vx)) + (z3d * Math.cos(vx)); tx = (x3d * Math.cos(vy)) - (tz * Math.sin(vy)); tz = (x3d * Math.sin(vy)) + (tz * Math.cos(vy)); ox = tx; tx = (tx * Math.cos(vz)) - (ty...

来源: Laya_示例 发布时间: 20240929

42. 其他引擎的Demo-Example_05 [ 93%]

...] - 1; } x3d = tpoint1[i]; y3d = tpoint2[i]; z3d = tpoint3[i]; ty = (y3d * Math.cos(vx)) - (z3d * Math.sin(vx)); tz = (y3d * Math.sin(vx)) + (z3d * Math.cos(vx)); tx = (x3d * Math.cos(vy)) - (tz * Math.sin(vy)); tz = (x3d * Math.sin(vy)) + (tz * Math.cos(vy)); ox = tx; tx = (tx * Math.cos(vz)) - (ty...

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

43. 区块地图-等角地图 [ 93%]

...Laya.stage.mouseX, Laya.stage.mouseY, p); layer.getScreenPositionByTilePos(Math.floor(p.x), Math.floor(p.y), p); sprite.pos(p.x, p.y); } function mapLoaded() { layer = tiledMap.getLayerByIndex(0); var radiusX = 32; var radiusY = Math.tan(180 / Math.PI * 30) * radiusX; var color = "#FF7F50"; sprite =...

来源: Laya_示例 发布时间: 20240929

44. 你先用Laya.timer.frameLoop 然后再用tween才可以生效 直接用tween没用 [ 93%]

...y") as Laya.Sprite3D;    aniMonkey.transform.position = new Laya.Vector3(math,math,math); } Laya.Tween.to(aniMonkey.transform.position, { x: math1, y: aniMonkey.transform.position.y, z: aniMonkey.transform.position.z }, 5000);         2018-01-17 0 0 分享 微博 QZONE 微信 zzy0371 赞同来...

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

45. 区块地图-等角地图 [ 93%]

...通过地图坐标得到屏幕坐标 this.layer.getScreenPositionByTilePos(Math.floor(p.x), Math.floor(p.y), p); this.sprite.pos(p.x, p.y); } mapLoaded() { this.layer = this.tiledMap.getLayerByIndex(0); var radiusX = 32; var radiusY = Math.tan(180 / Math.PI * 30) * radiusX; // 14.37 var color = "#FF...

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

46. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 93%]

...er): void { this.view.box_mark.graphics.drawPie(216, 216, 216, -90, (-90 + Math.floor(percent * 360)), "#ff0000"); //画进度 let point: { x: number, y: number, hudu: number } = this.cal(216, 216, 205, Math.abs(Math.floor(percent * 360) ) - 90); //现在是顺时针,如果逆时针旋转 Math.abs...

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

47. 求一个三角旋转的算法代码。 [ 93%]

...= axisU.y;        let z:number= axisU.z;        let length:number= Math.sqrt(Vector3.dot(vector3d,vector3d));                let result:Vector3 = new Vector3();        result.x = u *Math.cos(T) + (y * w - z * v) *Math.sin(T) + x *(x * u + y * v + z * w)*( 1- Math.cos(T));     ...

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

48. var camera :Laya.Camera=new Laya.Camera(viewport, Math.PI/3,0,0.1,1000); [ 92%]

var camera :Laya.Camera=new Laya.Camera(viewport, Math.PI/3,0,0.1,1000); Camera的参数只能是数值吗,传入viewport 和  Math.PI/3 会报错 2017-05-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuix...

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

49. 输入设备-贪吃蛇(重力感应) [ 92%]

...gment.prototype.getPinPosition = function() { var radian = this.rotation * Math.PI / 180; var tx = this.x + Math.cos(radian) * this.width; var ty = this.y + Math.sin(radian) * this.width; return new Point(tx, ty); } this.size(width, height); this.init(); } Laya.class(Segment, "Segment", Sprite); var...

来源: Laya_示例 发布时间: 20240929

50. 高级应用-闪光 [ 92%]

...e = 0; Laya.timer.frameLoop(1, this, loop); function loop() { scaleValue = Math.sin(scaleDelta += 0.01); pos1.elements[0] = pos2.elements[0] = scaleValue * 13; pos1.elements[1] = Math.sin(scaleValue * 20) * 2; pos2.elements[1] = Math.sin(scaleValue * 20) * 2; glitter.addGlitterByPositions(pos1, pos2...

来源: Laya_示例 发布时间: 20240929