Answers for "unity rotate player based on terrain"

C#
0

unity rotate player based on terrain

upright = Vector3.Cross(transform.right, -(fHit.point - bHit.point).normalized)  transform.rotation = Quaternion.LookRotation(Vector3.Cross(transform.right, upright));
Posted by: Guest on January-18-2021

C# Answers by Framework

Browse Popular Code Answers by Language