![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
unity
unity的小方法 和 笔记
云观
这个作者很懒,什么都没留下…
展开
-
Unity旋转限制角度 通过欧拉角
private void MoveHead() { MoveX = Input.GetAxis("Mouse X"); MoveY = Input.GetAxis("Mouse Y"); if (transform.rotation.eulerAngles.y+MoveX > 305 || transform.rotation.eulerAngles.y+MoveX < 55) transform.Rotate(ne原创 2021-09-11 10:12:48 · 1533 阅读 · 0 评论 -
Unity 解决子弹发射方向问题
Siki学院案例 存档与读档中 子弹方向控制子弹生成在枪尾部 创建一个Aim空物体 摆在枪口之后调用_bullet.GetComponent<Bullet>().Launch(_Aim.transform.position -_bullet.transform.position);public void Launch(Vector3 Target) { RD.AddForce(Target*speed,ForceMode.Impulse); }即可获原创 2021-09-11 11:06:42 · 4964 阅读 · 0 评论 -
Unity 简单实现第三人称
Unity 第三人称视角简单实现原创 2022-07-14 12:27:14 · 1264 阅读 · 3 评论 -
Unity歌曲切换
unity歌曲切换实现原创 2022-07-17 09:00:10 · 951 阅读 · 0 评论