大约有 48 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0027 秒)
...a.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(Math.cos(radis), 0, Math.sin(radis))); let hitResult = new Array(); this.mainScene.physicsSimulation.rayCastAll(rays[i], hitResult); console.log(rays[i], hitResult); }我注意到2.0.0的时候有人提过这个问题,但是这个bug似乎还是没...
来源: Laya_社区 发布时间: 20190403
... 已上传 Demo 附件 编译调试启动chrome出现错误: Error processing launch: Error Could not attach to main target 游戏运行在chrome里面 听不见声音 用了第三方socket类 项目在IDE上可以连接正常运行,为什么打包APK之后在手机上就连接不上socket 循环...
来源: Laya_社区 发布时间: 20190826
...e=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(this._position, th...
来源: Laya2.0_文档 发布时间: 20210715
...你去旋转,你只能通过逻辑自己计算出轨迹,譬如用Math.sin、cos计算! babby_bei • 2017-07-19 18:23 @cuixueying:研究了一个下午,搞得一头雾水,感觉有点难啊,能否说下如何最简单的实现圆点围绕圆角矩形转动? yunzhongjushi • 2020-05-04...
来源: Laya_社区 发布时间: 20170719
...如果 AC旋转指定角度为θ. 则新的 C`坐标为(r*cos(θ+θ`), r*sin(θ+θ`)). 其中 r= 根号下(x1*x1+y1*y1). θ`= y1/x1的正切反三角 2019-12-24 0 1 分享 微博 QZONE 微信 NilZ 赞同来自: //求AC AB的叉积 Vector3.cross(AC, AB, out...
来源: Laya_社区 发布时间: 20191224
....Stage.SCREEN_NONE; private animate(): void { this._position.x = Math.sin(this.scaleDelta += 0.01); this.layaMonkey3D.transform.position = this._position; this.camera.viewport.project(this.layaMonkey3D.transform.position, this.camera.projectionViewMatrix, this._outPos); this.laya...
来源: Laya_社区 发布时间: 20180425
...1 = Math.round(x0 + r * Math.cos(hudu)); let y1 = Math.round(y0 + r * Math.sin(hudu)); console.log("Point :x=", x1, "y=", y1,"hudu=",a); return { x: x1, y: y1, hudu: a }; } 2019-06-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20190629
...码就可以复现这个bug。 function animate() { // _position.x = Math.sin(scaleDelta += 0.01); //删除这行代码 _position.z = scaleDelta += 0.01; //加上这行代码:Z轴平移直到移到视野之外 layaMonkey3D.transform.position = _position; camera.viewport.project(layaMonkey3D.transf...
来源: Laya_社区 发布时间: 20170810
... Laya.stage.timerLoop(1, this, function():void{index++;image.alpha = Math.sin(Math.PI*2*(index/24))}) var image:Image = new Image(); image.blendMode = "add"; image.skin = "res/atlas/test.png"; Laya.sta...
来源: Laya_社区 发布时间: 20190110
...a[i]) } x = i / 4 % w y = Math.ceil(i / 4 / w) - 1 d = Math.ceil(20 * Math.sin(0.071 * y)) if (x + d <= 0 || x + d > w) { data[i + 3] = 0 } else { data[i] = copy[i + d * 4] data[i + 1] = copy[i + 1 + d * 4] data[i + 2] = copy[i + 2 + d * 4] } } Laya.Browser.context.putImageData(imageData, 0, 0...
来源: Laya_社区 发布时间: 20171130