文章分类 -  Unity / Unity - 运动

摘要:https://www.youtube.com/playlist?list=PLxElzWEX8XzPC9s9_85305OxTH3CyNou4 阅读全文
posted @ 2023-08-20 14:06 匿鱼 阅读(12) 评论(0) 推荐(0)
摘要:地址: https://assetstore.unity.com/packages/tools/animation/legs-animator-154245 阅读全文
posted @ 2023-08-03 00:13 匿鱼 阅读(113) 评论(0) 推荐(0)
摘要:``` c# /*直接改变Y值*/ public class Player : MonoBehaviour { public float jumpStartSpeed = 20; public float gravitySpeed = 0; private float jumpSpeed; priv 阅读全文
posted @ 2023-01-31 14:12 匿鱼 阅读(66) 评论(0) 推荐(0)
摘要:类似飞毯载人运动的实现 using System; using UnityEngine; public class FlyingCarpetMove : MonoBehaviour { public float t; public bool dir; public float speed; publ 阅读全文
posted @ 2022-04-26 11:38 匿鱼 阅读(160) 评论(0) 推荐(0)
摘要:抛物线运动 抛物线公式: https://baike.baidu.com/item/%E6%8A%9B%E7%89%A9%E7%BA%BF/3555564 理论抛物线计算演示: public class 抛物线运动 : MonoBehaviour { public float p; void Upd 阅读全文
posted @ 2022-04-25 17:01 匿鱼 阅读(47) 评论(0) 推荐(0)
摘要:#高速移动物体穿模问题 ###一、解决办法之穿模帧处理 ####比如高度移动的物体在没有开启穿模帧处理时效果如下: 阅读全文
posted @ 2021-12-17 18:56 匿鱼 阅读(76) 评论(0) 推荐(0)
摘要:一、Dotween 插件的安装 二、Dotween 常用 API 示例 //目标点 private Vector3 targetPos = new Vector3(0, -1, 0); //起始点 private Vector3 formPos = new Vector3(0, 0, 0); voi 阅读全文
posted @ 2021-12-13 15:14 匿鱼 阅读(42) 评论(0) 推荐(0)
摘要:A 旋转 绕某轴旋转一定角度,顺时针逆时针 Unity Tips: How to rotate a Vector by an angle? (youtube.com) 阅读全文
posted @ 2021-08-09 14:48 匿鱼 阅读(15) 评论(0) 推荐(0)
摘要:A 根据物体的 forward 方向位移。 1 transform.position = Vector3.Lerp(transform.position, transform.position + transform.forward, Time.deltaTime); B 根据世界坐标 Forwar 阅读全文
posted @ 2021-08-09 10:29 匿鱼 阅读(93) 评论(0) 推荐(0)