Answers for "set rotation to velocity unity"

C#
1

set rotation to velocity unity

transform.rotation = Quaternion.LookRotation(rigidbody.velocity);
Posted by: Guest on April-12-2020

Code answers related to "set rotation to velocity unity"

C# Answers by Framework

Browse Popular Code Answers by Language