📜  如何降低 Unity 刚体的速度 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:20.579000             🧑  作者: Mango

代码示例4
//Drecrese Rigidbody Speed
[SerializeField] private Rigidbody rb;

void FixedUpdate() {
  //Decrease speed
  rb.velocity -= rb.velocity * 0.1f;
}