Answers for "unity normalize movement"

C#
0

unity normalize movement

//Normalizing the Input Vector and afterwards adding speed if needed!
 
 float h = Input.GetAxis("Horizontal");
 float v = Input.GetAxis("Vertical");
 Vector3 inputVector = new Vector2( h, 0, v );
 inputVector.Normalize();
Posted by: Guest on November-12-2020

C# Answers by Framework

Browse Popular Code Answers by Language