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

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

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

...._getTransformFlag(Laya.Transform3D.TRANSFORM_WORLDQUATERNION)) { var shapeRotation = this._colliderShape.localRotation; var btRotation = CannonPhysicsComponent._btQuaternion0; var rotation = transform.rotation; if (shapeRotation.x !== 0 || shapeRotation.y !== 0 || shapeRotation.z !== 0 || shapeRota...

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

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

设置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

3. FrameAnimation [ 94%]

...{         "target": 172,         "keyframes": {             "rotation": [{                 "value": 0,                 "tweenMethod": "linearNone",                 "tween": true,                 "target": 172,                 "key": "rotation", ...

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

4. json图片中带有pivot属性无效吗 [ 92%]

...,                 "h": 299             },             "rotated": false,             "trimmed": true,             "spriteSourceSize": {                 "x": 133,                 "y": 21,                 "w": 137,                 "h": 299...

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

5. rotate设置的值和获取的值不一样 [ 90%]

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

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

6. 设置了rotation后,事件响应出问题 [ 89%]

设置了rotation后,事件响应出问题 问题1: 使用laya1.5.x版本,设置rotation=70,有事件响应; 然后再把rotation设为0,发现事件响应区域仍然为旋转70度后的区域 问题2 使用 laya1.6.1版本,设置rotation=70后,事件响应区域仍然为未旋转...

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

7. 动态阴影被切割了?为啥没有显示完成的阴影 [ 88%]

...nce = new Laya.MeshSprite3D(new Laya.BoxMesh(x, y, z)); instance.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); instance.transform.position = new Laya.Vector3(posX, posY, posZ); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load(textureUrl); instanc...

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

8. 设置完rotation之后直接报错 [ 87%]

设置完rotation之后直接报错 参数 out只有一个值正常么 在update 里旋转的角度 附件 : --> 2018-07-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 LT 赞同来自: 这样问问题你觉得...

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

9. sprite的rotation设置的位置不一样,子sprite的方向也不一样 [ 86%]

sprite的rotation设置的位置不一样,子sprite的方向也不一样 var s1 = new Laya.Sprite(); var s2 = new Laya.Sprite(); var s3 = new Laya.Sprite(); s1.width = 64; s1.height = 64; s1.pivot(32, 32); s1.rotation = 90; s2.addChild(s3); s1.addChild(s2);    var s1 = new Laya.Sprite(); var s2...

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

10. 关于Sprite设置rotation,在laya native上旋转效果不连续的问题 [ 86%]

关于Sprite设置rotation,在laya native上旋转效果不连续的问题 当给Sprite的rotation属性设置浮点型的数值时,在浏览器上运行效果很连续,不卡顿,但在native上时,会有不连续,一卡一 卡的现象。看了引擎中对Sprite的rotaion进行设置...

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