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

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

1. iPhone微信小游戏上,文字错误 [ 100%]

...才能明白想表达什么。 2018-06-04 0 2 分享 微博 QZONE 微信 Sin 赞同来自: 不再接收好友聊天消息   变成了 不不接接好好聊聊消消 2018-06-04 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 只有iphone 微信小游戏 上有错误? 2018-06-04 0 4 分享...

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

2. socket无法连接服务器 [ 99%]

...    return 0;     }     //绑定IP和端口       sockaddr_in sin;     sin.sin_family = AF_INET;     sin.sin_port = htons(8080);     sin.sin_addr.S_un.S_addr = INADDR_ANY;     if (bind(slisten, (LPSOCKADDR)&sin, sizeof(sin)) == SOCKET_ERROR)     {         printf...

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

3. 让 CylinderMesh 支持椎体 [ 99%]

...iceAngle; posX=Math.cos(curAngle)*this._radius; posY=halfHeight; posZ=Math.sin(curAngle)*this._radius; vertices[vc++]=posX; vertices[vc++]=posY; vertices[vc++]=posZ; vertices[vc++]=0; vertices[vc++]=1; vertices[vc++]=0; vertices[vc++]=0.5+Math.cos(curAngle)*0.5; vertices[vc++]=0.5+Math.sin(curAngle)...

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

4. 能不能在帧循环中使用三角函数和开根号等数学函数?我测试的结果是只要使用了这些sin/cos会导致帧率下降 [ 98%]

...数和开根号等数学函数?我测试的结果是只要使用了这些sin/cos会导致帧率下降 2018-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 一点一滴 赞同来自: 帧率低未必是这里...

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

5. 高级应用-闪光 [ 97%]

...; 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); }c...

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

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

...3d = 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 * Math.sin(vz)); ty = (ox *...

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

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

...3d = 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 * Math.sin(vz)); ty = (ox *...

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

8. 绘制梯形 出错问题~ [ 92%]

...到B点  ["lineTo", dingBianW + (lineW - dingBianW) / 2, -_totalH / Math.sin((90 - Math.abs(skewXNum)) / 180 * Math.PI)], //再画到C点 ["lineTo", (lineW - dingBianW) / 2, -_totalH / Math.sin((90 - Math.abs(skewXNum)) / 180 * Math.PI)], //继续画到D点 ["closePath"] //闭合路径 ]; //绘制...

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

9. 场景打开完成事件,无法调用场景内的子物体 [ 85%]

...相关结果 已邀请: 与内容相关的链接 提交 3 个回复 r=a(1-sinθ) 赞同来自: 您若不修复  凡是调用ui相关的,都得写成这样。 哎  实在是拉跨 2020-06-12 0 0 分享 微博 QZONE 微信 r=a(1-sinθ) 赞同来自: 又更新了一下 最保险的还是 内部加...

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

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

...ew 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));        result.y = v *Math.cos(T) + (z * u - x * w) *Math.sin(T) + y *(x * u + y * v + z * w)*( 1- Math.cos(T));        result.z = w *Math.cos(T) + (x * v - y * u)...

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