大约有 51 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0042 秒)
transform的旋转和移动是异步方法吗? 在调用transform.rotate后修改锚点,旋转的锚点也改变了,是不是因为rotate是异步方法?如果是,有没有办法实现旋转之后回调? var cube:MeshSprite3D; // 省略了添加到场景中的代码 // 先移动锚...
来源: Laya_社区 发布时间: 20190427
加载模型后如何取得在Unity的Transform.Rotation属性 请问我如何取得我载入模型在Unity里面的Transform.Rotation参数。我试着在laya里面我查看_transform._localRotationEuler是Vector3(0,0,0),是不是只有提供Quaternion的表示而已呢? 2017-12-06 添加评...
来源: Laya_社区 发布时间: 20171206
3d模型旋转问题 请教下大家 我转X轴的时候用的是 sphere.transform.rotate(vectx,true,false); 转Y轴的时候用的是sphere.transform.rotate(vecty,false,false); 一个是局部,一个是世界 我怎么限制x轴转到北极就不转了,欧拉角,同一个位置每次输出...
来源: Laya_社区 发布时间: 20180523
...相机 var camera:Camera = scene.addChild(new Camera()) as Camera; camera.transform.position = new Vector3(0, 3, 3); camera.transform.rotate(new Vector3( -45, 0, 0), true, false); camera.addComponent(CameraMoveScript); //生成平面,其实是一个box,只不过高度很小,可看成一个平...
来源: Laya_社区 发布时间: 20161223
设置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
transform.rotate()问题 为什么我用的是rotate 但是不是旋转角度而是对位置进行上下平移 是什么原因啊 Demo在附件中 附件 : --> Test1.zip 2018-01-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20180119
...中 方框指示的sprite3d的rotation,会导致子物体TargetGuard的transform.position不正确,好像子节点属于的坐标系变动了? 比如说,绳子不旋转的时候,我在代码中动下面圆盘的transform.positionthis.block = s.getChildByName("target_root").getChildByNam...
来源: Laya_社区 发布时间: 20171228
...: 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
rotate设置的值和获取的值不一样 this.transform.rotate(new Vector3(0, 1.68, 0)); trace(">>>>>rotate>>>>" + transform.localRotation.y); trace(">>>>>rotate>>>>" + transform.rotation.y); 设置的旋转和输出的旋转值不一样,这...
来源: Laya_社区 发布时间: 20170605
...jd); tf.translate(thisp.x,thisp.y); var otf:Matrix=new Matrix();//photoimg.transform?photoimg.transform:new Matrix(); //trace("jjjj1",photoimg.x,photoimg.y,photoimg.width,photoimg.height,photoimg.rotation); photoimg.transform=otf.concat(tf); image图片 通过矩阵旋转, bug1 如果设置缩放 ...
来源: Laya_社区 发布时间: 20161124