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

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

51. Resources already exist,is repeated loading 加载特效报重复加载 [ 79%]

...exist,is repeated loading 加载特效报重复加载 export default class TransformDemo{     private scene:Laya.Scene3D;     private position:Laya.Vector3 = new Laya.Vector3(0, 0, 0);     private position1:Laya.Vector3 = new Laya.Vector3(0, 0, 0);     private rotate:Laya.Vector3 = ne...

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

52. 怎么设置3D相机,模型的绝对值 [ 79%]

怎么设置3D相机,模型的绝对值 this.camera.transform.position = new Laya.Vector3(0, 10, 40); this.camera.transform.translate(new Laya.Vector3(0, 10, 40)); this.camera.transform.rotate(new Laya.Vector3(0, 10, 0), true, false); 做一个按钮,专门切换到90度的视图上,怎么设置相...

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

53. 挂载物体的3D变换问题 [ 79%]

...8); var cylinder3D:MeshSprite3D=new MeshSprite3D(cylinderMesh); cylinder3D.transform.translate(new Vector3(3,0,0),true); cylinder3D.transform.localScale = new Vector3(2,2,2); cylinder3D.transform.localRotationEuler = new Vector3(90,90,90); role.getChildAt(0).addChild(cylinder3D); this.ani.linkSprite...

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

54. timer.loop帧率高于物理帧率移动父级导致子物体本地坐标异常 [ 79%]

...liderShape = new Laya.CompoundColliderShape();             this.cube.transform.localPosition = new Laya.Vector3();         }         let pos = this.cubeP.transform.position;         pos.z += dis;         this.cubeP.transform.position = pos;         if(this.cube.transform.lo...

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

55. layabox 旋转缩放某个3D物体要怎么实现,event检测不到3D的吗? [ 79%]

...链接 提交 1 个回复 Laya_XS 赞同来自: 你可以修改3d物体的transform的rotate跟localScale来实现物体的缩放旋转。具体不明白你是要旋转实现哪些,你可以参考下3d的transform的api看下。3d的事件触发需要用射线检测来弄,不是2d的鼠标事件...

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

56. 动画混合问题,Avatar动画混合报错. [ 79%]

...RO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.transform.translate(norDir,false); // let position = Laya.Vector3.ZERO; // Laya.Vector3.add(this.sprite.transform.position,norDir,position) // this.sprite.transform.position = position; this.sprite.transform.localPositionX +=...

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

57. 拖尾效果在改变Cube的Y轴旋转的时候为什么会垂直了? [ 79%]

...尾目前一共提供两种朝向,一是朝向相机,二是朝向朝向transform组件的前向量。你用的是朝向相机的,所以移动过程中旋转,出现 扭曲是正常的。你可以看看unity中的现象。 2019-12-18 0 2 分享 微博 QZONE 微信 NilZ 赞同来自: 我给你...

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

58. ios微信clone特效会导致特效的mesh无法显示 [ 78%]

...ra = scene.addChild( new Laya.Camera(0, 0.1, 100) ) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.Sprite3D.load( "res/test_mesh2.lh", Laya.Handler.create(this, function (sprite: Laya.Sprite3D): void { va...

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

59. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 78%]

...ra = this.scene.addChild(new Laya.Camera(0, 0.1, 100));         camera.transform.translate(new Laya.Vector3(0, 6, 9.5));         camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);         camera.addComponent(CameraMoveScript);         camera.clearFlag = Laya.BaseCamer...

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

60. physics3D中使用CharacterController组件如何改变模型朝向 [ 78%]

...法。 unity中可以通过设置forward朝向来改变角度, laya中的transform中执行的所有旋转都是无效的? 2019-05-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 bpmf_d 赞同来自: 提供一...

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