Answers for "How to get direction of object unity"

C#
1

unity c# get direction of object

// Get direction from A to B
 Vector3 posA = ObjectA.position;
 Vector3 posB = ObjectB.position;
 //Destination - Origin
 Vector3 dir = (posB - posA).normalized;
Posted by: Guest on March-03-2021

Code answers related to "How to get direction of object unity"

C# Answers by Framework

Browse Popular Code Answers by Language