大约有 27 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0029 秒)
transform的旋转和移动是异步方法吗? 在调用transform.rotate后修改锚点,旋转的锚点也改变了,是不是因为rotate是异步方法?如果是,有没有办法实现旋转之后回调? var cube:MeshSprite3D; // 省略了添加到场景中的代码 // 先移动锚...
来源: Laya_社区 发布时间: 20190427
Transform3D::pivot移到哪里了吗?现在Sprite3D该怎样设置描点呢? 2020-03-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 BetaCat 赞同来自: 有解决吗,这个该死的引擎文档像个奥...
来源: Laya_社区 发布时间: 20200312
3D模型的锚点设置无效 cy.transform.pivot = new Laya.Vector3(0,1,0); cy是个圆柱体,显示正常,但设置锚点设置没效果 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying...
来源: Laya_社区 发布时间: 20170719
用Transform和直接设置xy坐标的效果不一致 LayaAir2.0直接设置坐标的效果是正确的,设置transform不正确。在LayaAir1.x两个效果都是一致的。 let txt: Laya.Text = new Laya.Text(); txt.text = "HELLO"; txt.color = "#ffffff"; txt.x = 1136 / 2, txt.y = 320; Laya.stage...
来源: Laya_社区 发布时间: 20181015
transform.pivot = new Laya.Vector3(0,1,0); 设置pivot无效~~~~~~~~~~~~~ 2017-07-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: leonszheng 3d中的pivot只会影响物体旋转,是...
来源: Laya_社区 发布时间: 20170720
...ar tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚光灯,始...
来源: Laya_社区 发布时间: 20171105
...ar tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚光灯,始...
来源: Laya_社区 发布时间: 20171105
...: GetComponent<Rigidbody>().AddForce ( Quaternion.Euler (new Vector3(transform.rotation.eulerAngles.x,transform.rotation.eulerAngles.y,transform.rotation.eulerAngles.z)) *new Vector3(25f*length,0,0), ForceMode.VelocityChange); 大概的须求是2d场景,旋转鼠标,炮台也跟着旋转...
来源: Laya_社区 发布时间: 20200324
...移 laya预览效果与Unity运行效果一致 将下图上方的cube Transform属性的Scale 设置为5:1:1的比例将X轴 Scale 拉伸5倍后 再讲BoxCollider的Center属性 x 设置为偏移 -0.3 得到如下效果 接下来我们来看看unity 的运行效果: unity 运行效果图...
来源: Laya_社区 发布时间: 20191019
...ar tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚光灯,始...
来源: Laya_社区 发布时间: 20171105