Answers for "velocity rigidbody"

C#
1

rigidbody velocity c# unity

//for rigidbody2D
GetComponent<Rigidbody2D>().velocity =new Vector2(40,0);
Posted by: Guest on September-27-2020
0

rigidbody.velocity.magnitude

//speed of rigidbody in m/s
float speed = rigidbody.velocity.magnitude;
Posted by: Guest on December-23-2020

C# Answers by Framework

Browse Popular Code Answers by Language