Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity rotation between 2 points

transform.rotation = Quaternion.FromToRotation(Vector3.up, v3Pos2 - v3Pos1);
 
PREVIOUS NEXT
Tagged: #unity #rotation #points
ADD COMMENT
Topic
Name
3+6 =