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

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

1. 加载模型后如何取得在Unity的Transform.Rotation属性 [ 100%]

加载模型后如何取得在Unity的Transform.Rotation属性 请问我如何取得我载入模型在Unity里面的Transform.Rotation参数。我试着在laya里面我查看_transform._localRotationEuler是Vector3(0,0,0),是不是只有提供Quaternion的表示而已呢? 2017-12-06 添加评...

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

2. Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 98%]

...,   目测bug原因是 laya.cannonPhysics.js 内的_innerDerivePhysicsTransformation 方法中,错误的将 colliderShape.localOffset 的世界坐标,设置成了 transform.position 。导致物体会一直匀速移动。 _innerDerivePhysicsTransformation(physicTransformOut, force) { var tra...

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

3. 设置transform.localRotation之后,就不能再使用transform.rotate了 [ 97%]

设置transform.localRotation之后,就不能再使用transform.rotate了 laya3D, ... var ele=eleroot.getChildAt(0).clone(); ele.transform.position=new Laya.Vector3(0, 0, 0); scene.addChild(ele); ... ele.transform.rotate(new Laya.Vector3(10, 0, 0), true); //这里会有效 ele.transform.localRo...

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

4. transform.rotate()问题 [ 96%]

transform.rotate()问题 为什么我用的是rotate 但是不是旋转角度而是对位置进行上下平移 是什么原因啊 Demo在附件中 附件 : --> Test1.zip 2018-01-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

5. 加了刚体的物体 调用transform.rotate旋转它时,会回到原始的位置 [ 95%]

加了刚体的物体 调用transform.rotate旋转它时,会回到原始的位置 不管使用laya自己创建的模型还是unity导出的模型,加上刚体后,rotate它的时候位置会回到最开始的位置,demo里面我现在时加了个定时器 在onIntervalTime 每隔2秒调用...

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

6. rotate设置的值和获取的值不一样 [ 92%]

rotate设置的值和获取的值不一样 this.transform.rotate(new Vector3(0, 1.68, 0)); trace(">>>>>rotate>>>>" + transform.localRotation.y); trace(">>>>>rotate>>>>" + transform.rotation.y); 设置的旋转和输出的旋转值不一样,这...

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

7. 3d对象使用addChild后localPosition没有变化 [ 91%]

...久才发现是laya的addChild()方法的原因。你可以打印下child.transform.position,会发现child.transform.position = child.transform.localPosition + owner.transform.position,导致child发生了位移。 以下是是我验证出来的结果,基于两种不同的思路,这最终...

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

8. transform的旋转和移动是异步方法吗? [ 91%]

transform的旋转和移动是异步方法吗? 在调用transform.rotate后修改锚点,旋转的锚点也改变了,是不是因为rotate是异步方法?如果是,有没有办法实现旋转之后回调?   var cube:MeshSprite3D; // 省略了添加到场景中的代码 // 先移动锚...

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

9. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 90%]

...中 方框指示的sprite3d的rotation,会导致子物体TargetGuard的transform.position不正确,好像子节点属于的坐标系变动了?   比如说,绳子不旋转的时候,我在代码中动下面圆盘的transform.positionthis.block = s.getChildByName("target_root").getChildByNam...

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

10. 3d模型旋转问题 [ 90%]

3d模型旋转问题 请教下大家 我转X轴的时候用的是 sphere.transform.rotate(vectx,true,false); 转Y轴的时候用的是sphere.transform.rotate(vecty,false,false); 一个是局部,一个是世界 我怎么限制x轴转到北极就不转了,欧拉角,同一个位置每次输出...

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