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

浙公网安备 33010602011771号