Answers for "unity rotate towards velocity"

C#
1

set rotation to velocity unity

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

unity rotate towards

Quaternion.RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta);
Posted by: Guest on March-07-2020

Code answers related to "unity rotate towards velocity"

C# Answers by Framework

Browse Popular Code Answers by Language