luoyikun

导航

2017年5月18日 #

Git 遇到了 early EOF index-pack failed 问题

摘要: fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed git config --global --add core.compression -1 阅读全文

posted @ 2017-05-18 23:20 luoyikun 阅读(11) 评论(0) 推荐(0)

u3d拖动摄像机视角与双指缩放

摘要: using UnityEngine; using System.Collections; public class CamMove : MonoBehaviour { private float m_xSpeed = 250.0f; private float m_ySpeed = 120.0f; 阅读全文

posted @ 2017-05-18 11:43 luoyikun 阅读(24) 评论(0) 推荐(0)

u3d物体跟随摄像头旋转角度

摘要: void Update () { Quaternion rotation = Quaternion.LookRotation(transform.forward - m_arCam.transform.forward); transform.rotation = Quaternion.Lerp(tr 阅读全文

posted @ 2017-05-18 11:33 luoyikun 阅读(9) 评论(0) 推荐(0)

u3d协程控制匀速旋转角度

摘要: 点击红色圈后,实现选中plane旋转至人物正前方 第一步:首先获取选中plane与正前方的夹角 float AngleGet(Vector3 from, Vector3 to) { Vector3 v3 = Vector3.Cross(from, to); if (v3.y > 0) return 阅读全文

posted @ 2017-05-18 09:25 luoyikun 阅读(14) 评论(0) 推荐(0)