Answers for "rigid body velocity"

C#
0

rigidbody velocity

rb.velocity = new Vector3(0, 10, 0);
Posted by: Guest on February-09-2020
0

how to decrease velocity of a Unity rigidbody

//Drecrese Rigidbody Speed
[SerializeField] private Rigidbody rb;

void FixedUpdate() {
  //Decrease speed
  rb.velocity -= rb.velocity * 0.1f;
}
Posted by: Guest on September-15-2021

C# Answers by Framework

Browse Popular Code Answers by Language